16.04 auf stick löschenTS

Asked by masesi

Auf diesen Stick habe ich vor Jahren 16.04 geladen und möchte ihn nun für das neue LTS Programm nutzen.

Question information

Language:
German Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
masesi
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
Manfred Hampl (m-hampl) said :
#1

Ist auf diesem Stick ein Installations-Kit für Ubuntu 16.04, oder eine ganze Installation?
Was ist der zukünftige Zweck - ein Installations-Medium, um Ubuntu 18.04 auf einer Festplatte zu installieren, oder soll Ubuntu 18.04 auf dem Stick installiert werden?

Revision history for this message
masesi (m1h9m1h9) said :
#2
Revision history for this message
masesi (m1h9m1h9) said :
#3
Revision history for this message
masesi (m1h9m1h9) said :
#4

ein Installationskit, entsprechend soll1804 auf diesem Stick gespeichert werden

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

Um einen Ubuntu-Installations-Kit (z.B. für 18.04) darauf zu speichern, kann man die Prozedur https://tutorials.ubuntu.com/tutorial/tutorial-create-a-usb-stick-on-ubuntu durchführen. Dabei wird alles, was zu diesem Zeitpunkt auf dem Stick ist gelöscht und der neue Installations-Kit darauf eingerichtet, sodass dann von diesem Stick ein Ubuntu-System auf der Festplatte installiert werden kann.

Revision history for this message
masesi (m1h9m1h9) said :
#6

Thanks Manfred Hampl, that solved my question.

Revision history for this message
masesi (m1h9m1h9) said :
#7

link not found

Revision history for this message
Manfred Hampl (m-hampl) said :
#8

Please look at your question document on the launchpad web pages
https://answers.launchpad.net/launchpad/+question/678677
and use the link https://tutorials.ubuntu.com/tutorial/tutorial-create-a-usb-stick-on-ubuntu from this document.
I assume that your mail system breaks the link into pieces for whatever nonsense reason.

Revision history for this message
masesi (m1h9m1h9) said :
#9

Beim upgrade hängen geblieben, zu wenig Speicher (49,9MB).
Vorher schon ein andere empfohlene Methode ausprobiert, bei der Ausführung steckengeblieben. Leider das Terrminal aus Versehen gelöscht.Output beim 2. Terminal:
martina@HP-Pavilion-17-PC:~$ sudo apt autoremove
E: Konnte Sperre /var/lib/dpkg/lock-frontend nicht bekommen - open (11: Die Ressource ist zur Zeit nic
ht verfügbar)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?

Revision history for this message
Manfred Hampl (m-hampl) said :
#10

Was hat ein Upgrade mit dem Erzeugen eines Bootable USB-Stick zu tun?

"E: Konnte Sperre /var/lib/dpkg/lock-frontend nicht bekommen …"
Das Paket-Management-System verhindert, dass zwei Prozesse gleichzeitig Pakete installieren. Allem Anschein nach läuft noch ein anderer Prozess zur Paket-Installation.

Entweder warten, bis der Prozess beendet ist, oder (wenn der Prozess hängen geblieben ist) rebooten. Dann sollte die Installation wieder laufen.

Revision history for this message
masesi (m1h9m1h9) said :
#11

Mit einem 18.04 iso file kann ich also leicht den gewünschten Stick bekommen, ist also die Frage wie bekomme ich einen 18.04 iso file. Daher die Frage, wie bekomme ich ein upgrade vofn meinem 16.04 System auf

Revision history for this message
masesi (m1h9m1h9) said :
#12

' Entschuldigung' 18.04?

Revision history for this message
Manfred Hampl (m-hampl) said :
#13

Worum geht es in dieser Frage nun genau?

1. Um die Herstellung eines Installations-USB-Sticks für Ubuntu 18.04
2. Um Probleme bei einem Update (Konnte Sperre … nicht bekommen)
3. Oder um ein Upgrade des derzeit installierten Ubuntu 16.04 auf Ubuntu 18.04?

Revision history for this message
masesi (m1h9m1h9) said :
#14

kann upgrade nicht ausführen, da zu wenig Platz bei der Aktualisierung

martina@HP-Pavilion-17-PC:~$ update-manager -d
/usr/bin/update-manager:28: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk
/usr/lib/python3/dist-packages/UpdateManager/UnitySupport.py:29: PyGIWarning: Dbusmenu was imported without specifying a version first. Use gi.require_version('Dbusmenu', '0.4') before import to ensure that the right version gets loaded.
  from gi.repository import Dbusmenu, Unity
/usr/lib/python3/dist-packages/UpdateManager/UnitySupport.py:29: PyGIWarning: Unity was imported without specifying a version first. Use gi.require_version('Unity', '7.0') before import to ensure that the right version gets loaded.
  from gi.repository import Dbusmenu, Unity
Getötet
martina@HP-Pavilion-17-PC:~$ update-manager -d
/usr/bin/update-manager:28: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk
/usr/lib/python3/dist-packages/UpdateManager/UnitySupport.py:29: PyGIWarning: Dbusmenu was imported without specifying a version first. Use gi.require_version('Dbusmenu', '0.4') before import to ensure that the right version gets loaded.
  from gi.repository import Dbusmenu, Unity
/usr/lib/python3/dist-packages/UpdateManager/UnitySupport.py:29: PyGIWarning: Unity was imported without specifying a version first. Use gi.require_version('Unity', '7.0') before import to ensure that the right version gets loaded.
  from gi.repository import Dbusmenu, Unity
WARNING:root:Error loading .desktop file /usr/share/app-install/desktop/imagemagick-6.q16:display-im6.q16.desktop: constructor returned NULL
WARNING:root:Error loading .desktop file /usr/share/applications/kde4/knetattach.desktop: constructor returned NULL
WARNING:root:Error loading .desktop file /usr/share/app-install/desktop/kde-runtime:kde4__knetattach.desktop: constructor returned NULL
WARNING:root:Error loading .desktop file /usr/share/applications/kde4/kipiplugins.desktop: constructor returned NULL
WARNING:root:Error loading .desktop file /usr/share/app-install/desktop/kipi-plugins:kde4__kipiplugins.desktop: constructor returned NULL
WARNING:root:Error loading .desktop file /usr/share/applications/vim.desktop: constructor returned NULL
WARNING:root:Error loading .desktop file /usr/share/app-install/desktop/vim-common:vim.desktop: constructor returned NULL
ERROR:root:Not enough free space: ['/boot']
sudo apt autoremove

Revision history for this message
Manfred Hampl (m-hampl) said :
#15

"Not enough free space" ist ein völlig anderes Problem.

Zur weiteren Diagnose, was ist der Output der Kommandos:

uname -a
lsb_release -crid
df -h
dpkg -l | grep -e ' linux-[mi]'
ls -l /boot

Anmerkung: die Option "-d" für Update-manager schlägt ein Upgrade zur Entwicklungsversion vor (konkret derzeit Ubuntu 19.04, die Version die erst im April offiziell freigegeben werden soll). Ist das wirklich gewünscht?

Revision history for this message
masesi (m1h9m1h9) said :
#16

martina@HP-Pavilion-17-PC:~$ uname -a
Linux HP-Pavilion-17-PC 4.4.0-142-generic #168-Ubuntu SMP Wed Jan 16 21:00:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
martina@HP-Pavilion-17-PC:~$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 16.04.6 LTS
Release: 16.04
Codename: xenial
martina@HP-Pavilion-17-PC:~$ df -h
Dateisystem Größe Benutzt Verf. Verw% Eingehängt auf
udev 1,7G 0 1,7G 0% /dev
tmpfs 342M 5,9M 336M 2% /run
/dev/mapper/ubuntu--vg-root 455G 59G 373G 14% /
tmpfs 1,7G 19M 1,7G 2% /dev/shm
tmpfs 5,0M 4,0K 5,0M 1% /run/lock
tmpfs 1,7G 0 1,7G 0% /sys/fs/cgroup
/dev/loop0 175M 175M 0 100% /snap/spotify/32
/dev/loop2 165M 165M 0 100% /snap/mpv-casept/2
/dev/loop5 196M 196M 0 100% /snap/vlc/555
/dev/loop9 203M 203M 0 100% /snap/vlc/768
/dev/loop7 175M 175M 0 100% /snap/spotify/31
/dev/loop8 92M 92M 0 100% /snap/core/6259
/dev/loop4 91M 91M 0 100% /snap/core/6350
/dev/loop1 174M 174M 0 100% /snap/spotify/34
/dev/loop6 91M 91M 0 100% /snap/core/6405
/dev/loop3 203M 203M 0 100% /snap/vlc/770
/dev/sda2 237M 148M 77M 67% /boot
/dev/sda1 511M 3,7M 508M 1% /boot/efi
cgmfs 100K 0 100K 0% /run/cgmanager/fs
tmpfs 342M 56K 342M 1% /run/user/1000
/dev/sr0 3,6G 3,6G 0 100% /mnt/ata-hp_DVD_A_DU8A5SH_662351012625
martina@HP-Pavilion-17-PC:~$ dpkg -l | grep -e ' linux-[mi]'
ii linux-image-4.4.0-141-generic 4.4.0-141.167 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii linux-image-4.4.0-142-generic 4.4.0-142.168 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii linux-image-extra-4.4.0-141-generic 4.4.0-141.167 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii linux-image-extra-4.4.0-142-generic 4.4.0-142.168 amd64 Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii linux-image-generic 4.4.0.142.148 amd64 Generic Linux kernel image
martina@HP-Pavilion-17-PC:~$ ls -l /boot
insgesamt 141477
-rw-r--r-- 1 root root 1252429 dic 5 11:08 abi-4.4.0-141-generic
-rw-r--r-- 1 root root 1252376 ene 16 20:29 abi-4.4.0-142-generic
-rw-r--r-- 1 root root 190611 dic 5 11:08 config-4.4.0-141-generic
-rw-r--r-- 1 root root 190580 ene 16 20:29 config-4.4.0-142-generic
drwxr-xr-x 3 root root 4096 dic 31 1969 efi
drwxr-xr-x 5 root root 1024 feb 18 14:16 grub
-rw-r--r-- 1 root root 41231966 ene 11 17:36 initrd.img-4.4.0-141-generic
-rw-r--r-- 1 root root 41243396 feb 22 15:58 initrd.img-4.4.0-142-generic
-rw-r--r-- 1 root root 12061629 dic 19 10:45 initrd.img-4.4.0-75-generic
-rw-r--r-- 1 root root 12061664 dic 19 10:45 initrd.img-4.4.0-89-generic
-rw-r--r-- 1 root root 12061629 dic 19 10:45 initrd.img-4.4.0-96-generic
drwx------ 2 root root 12288 jul 31 2014 lost+found
-rw-r--r-- 1 root root 182704 ene 28 2016 memtest86+.bin
-rw-r--r-- 1 root root 184380 ene 28 2016 memtest86+.elf
-rw-r--r-- 1 root root 184840 ene 28 2016 memtest86+_multiboot.bin
-rw-r--r-- 1 root root 255 dic 5 11:08 retpoline-4.4.0-141-generic
-rw-r--r-- 1 root root 255 ene 16 20:29 retpoline-4.4.0-142-generic
-rw------- 1 root root 3905747 dic 5 11:08 System.map-4.4.0-141-generic
-rw------- 1 root root 3904797 ene 16 20:29 System.map-4.4.0-142-generic
-rw------- 1 root root 7171392 dic 5 11:08 vmlinuz-4.4.0-141-generic
-rw------- 1 root root 7184032 ene 16 20:29 vmlinuz-4.4.0-142-generic
martina@HP-Pavilion-17-PC:~$

nein ich möchte 18.04LTS danke für den Hinweis

Revision history for this message
Manfred Hampl (m-hampl) said :
#17

Ich sehe da drei überflüssige Dateien, die gelöscht werden sollten:

sudo rm /boot/initrd.img-4.4.0-75-generic
sudo rm /boot/initrd.img-4.4.0-89-generic
sudo rm /boot/initrd.img-4.4.0-96-generic

Was ist der Output des Kommandos

ls /var/lib/initramfs-tools

Revision history for this message
masesi (m1h9m1h9) said :
#18

martina@HP-Pavilion-17-PC:~$ sudo rm /boot/initrd.img-4.4.0-75-generic
rm: das Entfernen von '/boot/initrd.img-4.4.0-75-generic' ist nicht möglich: Datei oder Verzeichnis nicht gefunden
martina@HP-Pavilion-17-PC:~$ sudo rm /boot/initrd.img-4.4.0-89-generic
martina@HP-Pavilion-17-PC:~$ sudo rm /boot/initrd.img-4.4.0-96-generic
martina@HP-Pavilion-17-PC:~$ ls /var/lib/initramfs-tools
4.4.0-141-generic 4.4.0-75-generic 4.4.0-96-generic
4.4.0-142-generic 4.4.0-89-generic
martina@HP-Pavilion-17-PC:~$

Revision history for this message
Manfred Hampl (m-hampl) said :
#19

ok, noch drei Dateien die gelöscht werden sollten:

sudo rm /var/lib/initramfs-tools/4.4.0-75-generic
sudo rm /var/lib/initramfs-tools/4.4.0-89-generic
sudo rm /var/lib/initramfs-tools/4.4.0-96-generic

Und abschließend zur Kontrolle noch einmal
df -h
Nun sollten auf /boot nun mindestens 100 MB frei sein.

Revision history for this message
masesi (m1h9m1h9) said :
#20

Dateisystem Größe Benutzt Verf. Verw% Eingehängt auf
udev 1,7G 0 1,7G 0% /dev
tmpfs 342M 11M 332M 3% /run
/dev/mapper/ubuntu--vg-root 455G 59G 373G 14% /
tmpfs 1,7G 118M 1,6G 7% /dev/shm
tmpfs 5,0M 4,0K 5,0M 1% /run/lock
tmpfs 1,7G 0 1,7G 0% /sys/fs/cgroup
/dev/loop0 175M 175M 0 100% /snap/spotify/32
/dev/loop2 165M 165M 0 100% /snap/mpv-casept/2
/dev/loop5 196M 196M 0 100% /snap/vlc/555
/dev/loop9 203M 203M 0 100% /snap/vlc/768
/dev/loop7 175M 175M 0 100% /snap/spotify/31
/dev/loop8 92M 92M 0 100% /snap/core/6259
/dev/loop4 91M 91M 0 100% /snap/core/6350
/dev/loop1 174M 174M 0 100% /snap/spotify/34
/dev/loop6 91M 91M 0 100% /snap/core/6405
/dev/loop3 203M 203M 0 100% /snap/vlc/770
/dev/sda2 237M 114M 111M 51% /boot
/dev/sda1 511M 3,7M 508M 1% /boot/efi
cgmfs 100K 0 100K 0% /run/cgmanager/fs
tmpfs 342M 72K 342M 1% /run/user/1000
/dev/sr0 3,6G 3,6G 0 100% /mnt/ata-hp_DVD_A_DU8A5SH_662351012625
martina@HP-Pavilion-17-PC:~$

Danke f

Revision history for this message
masesi (m1h9m1h9) said :
#21

ür die Hilfe