purge grub.txt
von DrUlebuhle- SNIPPET_DESC:
- purge grub
- SNIPPET_CREATION_TIME:
- 15.09.2024 12:42:43
- SNIPPET_PRUNE_TIME:
- 15.10.2024 12:42:43
- SNIPPET_TEXT:
-
- user@debian:~$ sudo chroot /media/user/DEB/ /bin/bash -i
- root@debian:/# ls -la
- total 92
- drwxr-xr-x 18 root root 4096 Aug 19 08:40 .
- drwxr-xr-x 18 root root 4096 Aug 19 08:40 ..
- lrwxrwxrwx 1 root root 7 Aug 18 17:10 bin -> usr/bin
- drwxr-xr-x 4 root root 4096 Aug 19 08:41 boot
- drwxr-xr-x 4 root root 4096 Aug 18 17:20 dev
- drwxr-xr-x 141 root root 12288 Aug 28 05:09 etc
- drwxr-xr-x 3 root root 4096 Aug 18 17:26 home
- lrwxrwxrwx 1 root root 30 Aug 19 08:40 initrd.img -> boot/initrd.img-6.1.0-23-amd64
- lrwxrwxrwx 1 root root 30 Aug 19 08:40 initrd.img.old -> boot/initrd.img-6.1.0-22-amd64
- lrwxrwxrwx 1 root root 7 Aug 18 17:10 lib -> usr/lib
- lrwxrwxrwx 1 root root 9 Aug 18 17:10 lib64 -> usr/lib64
- drwx------ 2 root root 16384 Aug 18 17:10 lost+found
- drwxr-xr-x 4 root root 4096 Aug 18 15:40 media
- drwxr-xr-x 2 root root 4096 Jun 29 12:06 mnt
- drwxr-xr-x 2 root root 4096 Jun 29 12:06 opt
- drwxr-xr-x 2 root root 4096 Mar 29 20:20 proc
- drwx------ 18 root root 4096 Aug 25 10:20 root
- drwxr-xr-x 2 root root 4096 Aug 18 17:33 run
- lrwxrwxrwx 1 root root 8 Aug 18 17:10 sbin -> usr/sbin
- drwxr-xr-x 2 root root 4096 Jun 29 12:06 srv
- drwxr-xr-x 2 root root 4096 Mar 29 20:20 sys
- drwxrwxrwt 6 root root 4096 Sep 3 13:39 tmp
- drwxr-xr-x 14 root root 4096 Aug 19 11:40 usr
- drwxr-xr-x 11 root root 4096 Aug 18 17:20 var
- lrwxrwxrwx 1 root root 27 Aug 19 08:40 vmlinuz -> boot/vmlinuz-6.1.0-23-amd64
- lrwxrwxrwx 1 root root 27 Aug 19 08:40 vmlinuz.old -> boot/vmlinuz-6.1.0-22-amd64
- root@debian:/# apt purge grub* os-prober
- Reading package lists... Done
- Building dependency tree... Done
- Reading state information... Done
- Note, selecting 'grub-rescue-pc' for glob 'grub*'
- Note, selecting 'grub-xen' for glob 'grub*'
- Note, selecting 'grub2' for glob 'grub*'
- Note, selecting 'grub-coreboot' for glob 'grub*'
- Note, selecting 'grub-legacy-doc' for glob 'grub*'
- Note, selecting 'grub-legacy-ec2' for glob 'grub*'
- Note, selecting 'grub-emu-dbg' for glob 'grub*'
- Note, selecting 'grub-pc-bin' for glob 'grub*'
- Note, selecting 'grub-pc-dbg' for glob 'grub*'
- Note, selecting 'grub-xen-host' for glob 'grub*'
- Note, selecting 'grub-ieee1275-bin' for glob 'grub*'
- Note, selecting 'grub-cloud-amd64' for glob 'grub*'
- Note, selecting 'grub-ieee1275-dbg' for glob 'grub*'
- Note, selecting 'grub-imageboot' for glob 'grub*'
- Note, selecting 'grub-efi-arm64' for glob 'grub*'
- Note, selecting 'grub-efi-amd64' for glob 'grub*'
- Note, selecting 'grub-efi-arm' for glob 'grub*'
- Note, selecting 'grub-yeeloong' for glob 'grub*'
- Note, selecting 'grub' for glob 'grub*'
- Note, selecting 'grub-firmware-qemu' for glob 'grub*'
- Note, selecting 'grub-efi-amd64-signed' for glob 'grub*'
- Note, selecting 'grub-coreboot-bin' for glob 'grub*'
- Note, selecting 'grub-efi-arm64-signed' for glob 'grub*'
- Note, selecting 'grub-efi-ia32-signed-template:i386' for glob 'grub*'
- Note, selecting 'grub-coreboot-dbg' for glob 'grub*'
- Note, selecting 'grub-customizer' for glob 'grub*'
- Note, selecting 'grub-theme-starfield' for glob 'grub*'
- Note, selecting 'grub-efi-amd64-bin' for glob 'grub*'
- Note, selecting 'grub2-common' for glob 'grub*'
- Note, selecting 'grub-legacy' for glob 'grub*'
- Note, selecting 'grub-efi-amd64-signed-template' for glob 'grub*'
- Note, selecting 'grub-efi-amd64-dbg' for glob 'grub*'
- Note, selecting 'grub-ieee1275' for glob 'grub*'
- Note, selecting 'grub-uboot' for glob 'grub*'
- Note, selecting 'grub-common' for glob 'grub*'
- Note, selecting 'grub-efi-ia32-bin' for glob 'grub*'
- Note, selecting 'grub-efi-ia32-dbg' for glob 'grub*'
- Note, selecting 'grub-efi-ia32-signed:i386' for glob 'grub*'
- Note, selecting 'grub-invaders' for glob 'grub*'
- Note, selecting 'grub-linuxbios' for glob 'grub*'
- Note, selecting 'grub-xen-bin' for glob 'grub*'
- Note, selecting 'grub-efi-ia32' for glob 'grub*'
- Note, selecting 'grub-efi-ia64' for glob 'grub*'
- Note, selecting 'grub-xen-dbg' for glob 'grub*'
- Note, selecting 'grub-pc' for glob 'grub*'
- Note, selecting 'grub-doc' for glob 'grub*'
- Note, selecting 'grub-efi' for glob 'grub*'
- Note, selecting 'grub-emu' for glob 'grub*'
- Note, selecting 'grub-theme-breeze' for glob 'grub*'
- Note, selecting 'grub-legacy' instead of 'grub'
- Package 'grub-doc' is not installed, so not removed
- Package 'grub-efi-ia64' is not installed, so not removed
- Package 'grub-yeeloong' is not installed, so not removed
- Package 'grub-efi-arm' is not installed, so not removed
- Package 'grub-efi-arm64' is not installed, so not removed
- Package 'grub-uboot' is not installed, so not removed
- Package 'grub-efi-arm64-signed' is not installed, so not removed
- Note, selecting 'pv-grub-menu' instead of 'grub-legacy-ec2'
- Package 'grub-rescue-pc' is not installed, so not removed
- Package 'grub-theme-breeze' is not installed, so not removed
- Package 'grub-cloud-amd64' is not installed, so not removed
- Package 'grub2' is not installed, so not removed
- Package 'grub-pc' is not installed, so not removed
- Package 'grub-pc-bin' is not installed, so not removed
- Package 'grub-legacy' is not installed, so not removed
- Package 'grub-legacy-doc' is not installed, so not removed
- Package 'grub-customizer' is not installed, so not removed
- Package 'grub-efi' is not installed, so not removed
- Package 'grub-imageboot' is not installed, so not removed
- Package 'grub-efi-ia32' is not installed, so not removed
- Package 'grub-emu' is not installed, so not removed
- Package 'grub-coreboot' is not installed, so not removed
- Package 'grub-ieee1275' is not installed, so not removed
- Package 'grub-linuxbios' is not installed, so not removed
- Package 'grub-coreboot-bin' is not installed, so not removed
- Package 'grub-xen' is not installed, so not removed
- Package 'grub-coreboot-dbg' is not installed, so not removed
- Package 'grub-efi-amd64-dbg' is not installed, so not removed
- Package 'grub-efi-amd64-signed-template' is not installed, so not removed
- Package 'grub-efi-ia32-bin' is not installed, so not removed
- Package 'grub-efi-ia32-dbg' is not installed, so not removed
- Package 'grub-emu-dbg' is not installed, so not removed
- Package 'grub-firmware-qemu' is not installed, so not removed
- Package 'grub-ieee1275-bin' is not installed, so not removed
- Package 'grub-ieee1275-dbg' is not installed, so not removed
- Package 'grub-pc-dbg' is not installed, so not removed
- Package 'grub-theme-starfield' is not installed, so not removed
- Package 'grub-xen-bin' is not installed, so not removed
- Package 'grub-xen-dbg' is not installed, so not removed
- Package 'grub-xen-host' is not installed, so not removed
- Package 'grub-invaders' is not installed, so not removed
- Package 'grub-efi-ia32-signed:i386' is not installed, so not removed
- Package 'grub-efi-ia32-signed-template:i386' is not installed, so not removed
- The following packages were automatically installed and are no longer required:
- baloo-kf5 catdoc dolphin efibootmgr ffmpegthumbs kdegraphics-thumbnailers
- kfind kimageformat-plugins kuserfeedback-doc libdolphinvcs5 libepub0
- libkf5baloo5 libkf5balooengine5 libkf5baloowidgets-bin libkf5baloowidgets5
- libkf5filemetadata-bin libkf5filemetadata-data libkf5filemetadata3
- libkf5idletime5 libkf5kdcraw5 libkf5konq6 libkf5newstuff-data
- libkf5newstuff5 libkf5newstuffwidgets5 libkuserfeedbackcore1
- libkuserfeedbackwidgets1 libpackagekitqt5-1 mokutil
- qml-module-org-kde-userfeedback shim-helpers-amd64-signed shim-signed-common
- shim-unsigned
- Use 'sudo apt autoremove' to remove them.
- The following packages will be REMOVED:
- grub-common* grub-efi-amd64* grub-efi-amd64-bin* grub-efi-amd64-signed*
- grub2-common* os-prober* shim-signed*
- 0 upgraded, 0 newly installed, 7 to remove and 2 not upgraded.
- After this operation, 55.3 MB disk space will be freed.
- Do you want to continue? [Y/n] Y
- perl: warning: Setting locale failed.
- perl: warning: Please check that your locale settings:
- LANGUAGE = (unset),
- LC_ALL = (unset),
- LANG = "en_US.UTF-8"
- are supported and installed on your system.
- perl: warning: Falling back to the standard locale ("C").
- locale: Cannot set LC_CTYPE to default locale: No such file or directory
- locale: Cannot set LC_MESSAGES to default locale: No such file or directory
- locale: Cannot set LC_ALL to default locale: No such file or directory
- E: Can not write log (Is /dev/pts mounted?) - posix_openpt (13: Permission denied)
- (Reading database ... 419102 files and directories currently installed.)
- Removing os-prober (1.81) ...
- dpkg: warning: while removing os-prober, directory '/var/lib/os-prober' not empty so not removed
- Removing shim-signed:amd64 (1.39+15.7-1) ...
- Removing grub-efi-amd64 (2.06-13+deb12u1) ...
- Removing grub-efi-amd64-bin (2.06-13+deb12u1) ...
- Removing grub-efi-amd64-signed (1+2.06+13+deb12u1) ...
- Removing grub2-common (2.06-13+deb12u1) ...
- Removing grub-common (2.06-13+deb12u1) ...
- Processing triggers for install-info (6.8-6+b1) ...
- install-info: Permission denied for /dev/null
- install-info: Permission denied for /dev/null
- install-info: Permission denied for /dev/null
- install-info: Permission denied for /dev/null
- install-info: Permission denied for /dev/null
- install-info: Permission denied for /dev/null
- install-info: Permission denied for /dev/null
- install-info: Permission denied for /dev/null
- install-info: Permission denied for /dev/null
- install-info: Permission denied for /dev/null
- install-info: Permission denied for /dev/null
- install-info: Permission denied for /dev/null
- install-info: Permission denied for /dev/null
- install-info: Permission denied for /dev/null
- install-info: Permission denied for /dev/null
- install-info: Permission denied for /dev/null
- install-info: Permission denied for /dev/null
- install-info: Permission denied for /dev/null
- install-info: Permission denied for /dev/null
- install-info: Permission denied for /dev/null
- Processing triggers for man-db (2.11.2-2) ...
- /var/lib/dpkg/info/man-db.postinst: 23: cannot create /dev/null: Permission denied
- (Reading database ... 418601 files and directories currently installed.)
- Purging configuration files for grub2-common (2.06-13+deb12u1) ...
- Purging configuration files for shim-signed:amd64 (1.39+15.7-1) ...
- Purging configuration files for grub-common (2.06-13+deb12u1) ...
- dpkg: warning: while removing grub-common, directory '/var/lib/grub/ucf' not empty so not removed
- Purging configuration files for grub-efi-amd64 (2.06-13+deb12u1) ...
- /var/lib/dpkg/info/grub-efi-amd64.postrm: 8: cannot create /dev/null: Permission denied
- /var/lib/dpkg/info/grub-efi-amd64.postrm: 11: cannot create /dev/null: Permission denied
- locale: Cannot set LC_CTYPE to default locale: No such file or directory
- locale: Cannot set LC_MESSAGES to default locale: No such file or directory
- locale: Cannot set LC_ALL to default locale: No such file or directory
- sh: 1: cannot create /dev/null: Permission denied
- sh: 1: cannot create /dev/null: Permission denied
- sh: 1: cannot create /dev/null: Permission denied
- debconf: unable to initialize frontend: Dialog
- debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd
- /Dialog.pm line 78.)
- debconf: falling back to frontend: Readline
- sh: 1: cannot create /dev/null: Permission denied
- sh: 1: cannot create /dev/null: Permission denied
- sh: 1: cannot create /dev/null: Permission denied
- sh: 1: cannot create /dev/null: Permission denied
- /var/lib/dpkg/info/grub-efi-amd64.postrm: 8: cannot create /dev/null: Permission denied
- /var/lib/dpkg/info/grub-efi-amd64.postrm: 11: cannot create /dev/null: Permission denied
- sh: 1: cannot create /dev/null: Permission denied
- E: Problem executing scripts DPkg::Post-Invoke '/usr/bin/test -e /usr/share/dbus-1/system-services/org.freedesktop.PackageKit.service && /usr/bin/test -S /var/run/dbus/system_bus_socket && /usr/bin/gdbus call --system --dest org.freedesktop.PackageKit --object-path /org/freedesktop/PackageKit --timeout 4 --method org.freedesktop.PackageKit.StateHasChanged cache-update > /dev/null; /bin/echo > /dev/null'
- E: Sub-process returned an error code
- root@debian:/#
Quellcode
Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. PASTEBIN_DOWNLOAD_SNIPPET_EXPLAIN