NoPaste

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:
  1. user@debian:~$ sudo chroot /media/user/DEB/ /bin/bash -i
  2. root@debian:/# ls -la
  3. total 92
  4. drwxr-xr-x  18 root root  4096 Aug 19 08:40 .
  5. drwxr-xr-x  18 root root  4096 Aug 19 08:40 ..
  6. lrwxrwxrwx   1 root root     7 Aug 18 17:10 bin -> usr/bin
  7. drwxr-xr-x   4 root root  4096 Aug 19 08:41 boot
  8. drwxr-xr-x   4 root root  4096 Aug 18 17:20 dev
  9. drwxr-xr-x 141 root root 12288 Aug 28 05:09 etc
  10. drwxr-xr-x   3 root root  4096 Aug 18 17:26 home
  11. lrwxrwxrwx   1 root root    30 Aug 19 08:40 initrd.img -> boot/initrd.img-6.1.0-23-amd64
  12. lrwxrwxrwx   1 root root    30 Aug 19 08:40 initrd.img.old -> boot/initrd.img-6.1.0-22-amd64
  13. lrwxrwxrwx   1 root root     7 Aug 18 17:10 lib -> usr/lib
  14. lrwxrwxrwx   1 root root     9 Aug 18 17:10 lib64 -> usr/lib64
  15. drwx------   2 root root 16384 Aug 18 17:10 lost+found
  16. drwxr-xr-x   4 root root  4096 Aug 18 15:40 media
  17. drwxr-xr-x   2 root root  4096 Jun 29 12:06 mnt
  18. drwxr-xr-x   2 root root  4096 Jun 29 12:06 opt
  19. drwxr-xr-x   2 root root  4096 Mar 29 20:20 proc
  20. drwx------  18 root root  4096 Aug 25 10:20 root
  21. drwxr-xr-x   2 root root  4096 Aug 18 17:33 run
  22. lrwxrwxrwx   1 root root     8 Aug 18 17:10 sbin -> usr/sbin
  23. drwxr-xr-x   2 root root  4096 Jun 29 12:06 srv
  24. drwxr-xr-x   2 root root  4096 Mar 29 20:20 sys
  25. drwxrwxrwt   6 root root  4096 Sep  3 13:39 tmp
  26. drwxr-xr-x  14 root root  4096 Aug 19 11:40 usr
  27. drwxr-xr-x  11 root root  4096 Aug 18 17:20 var
  28. lrwxrwxrwx   1 root root    27 Aug 19 08:40 vmlinuz -> boot/vmlinuz-6.1.0-23-amd64
  29. lrwxrwxrwx   1 root root    27 Aug 19 08:40 vmlinuz.old -> boot/vmlinuz-6.1.0-22-amd64
  30. root@debian:/# apt purge grub* os-prober
  31. Reading package lists... Done
  32. Building dependency tree... Done
  33. Reading state information... Done
  34. Note, selecting 'grub-rescue-pc' for glob 'grub*'
  35. Note, selecting 'grub-xen' for glob 'grub*'
  36. Note, selecting 'grub2' for glob 'grub*'
  37. Note, selecting 'grub-coreboot' for glob 'grub*'
  38. Note, selecting 'grub-legacy-doc' for glob 'grub*'
  39. Note, selecting 'grub-legacy-ec2' for glob 'grub*'
  40. Note, selecting 'grub-emu-dbg' for glob 'grub*'
  41. Note, selecting 'grub-pc-bin' for glob 'grub*'
  42. Note, selecting 'grub-pc-dbg' for glob 'grub*'
  43. Note, selecting 'grub-xen-host' for glob 'grub*'
  44. Note, selecting 'grub-ieee1275-bin' for glob 'grub*'
  45. Note, selecting 'grub-cloud-amd64' for glob 'grub*'
  46. Note, selecting 'grub-ieee1275-dbg' for glob 'grub*'
  47. Note, selecting 'grub-imageboot' for glob 'grub*'
  48. Note, selecting 'grub-efi-arm64' for glob 'grub*'
  49. Note, selecting 'grub-efi-amd64' for glob 'grub*'
  50. Note, selecting 'grub-efi-arm' for glob 'grub*'
  51. Note, selecting 'grub-yeeloong' for glob 'grub*'
  52. Note, selecting 'grub' for glob 'grub*'
  53. Note, selecting 'grub-firmware-qemu' for glob 'grub*'
  54. Note, selecting 'grub-efi-amd64-signed' for glob 'grub*'
  55. Note, selecting 'grub-coreboot-bin' for glob 'grub*'
  56. Note, selecting 'grub-efi-arm64-signed' for glob 'grub*'
  57. Note, selecting 'grub-efi-ia32-signed-template:i386' for glob 'grub*'
  58. Note, selecting 'grub-coreboot-dbg' for glob 'grub*'
  59. Note, selecting 'grub-customizer' for glob 'grub*'
  60. Note, selecting 'grub-theme-starfield' for glob 'grub*'
  61. Note, selecting 'grub-efi-amd64-bin' for glob 'grub*'
  62. Note, selecting 'grub2-common' for glob 'grub*'
  63. Note, selecting 'grub-legacy' for glob 'grub*'
  64. Note, selecting 'grub-efi-amd64-signed-template' for glob 'grub*'
  65. Note, selecting 'grub-efi-amd64-dbg' for glob 'grub*'
  66. Note, selecting 'grub-ieee1275' for glob 'grub*'
  67. Note, selecting 'grub-uboot' for glob 'grub*'
  68. Note, selecting 'grub-common' for glob 'grub*'
  69. Note, selecting 'grub-efi-ia32-bin' for glob 'grub*'
  70. Note, selecting 'grub-efi-ia32-dbg' for glob 'grub*'
  71. Note, selecting 'grub-efi-ia32-signed:i386' for glob 'grub*'
  72. Note, selecting 'grub-invaders' for glob 'grub*'
  73. Note, selecting 'grub-linuxbios' for glob 'grub*'
  74. Note, selecting 'grub-xen-bin' for glob 'grub*'
  75. Note, selecting 'grub-efi-ia32' for glob 'grub*'
  76. Note, selecting 'grub-efi-ia64' for glob 'grub*'
  77. Note, selecting 'grub-xen-dbg' for glob 'grub*'
  78. Note, selecting 'grub-pc' for glob 'grub*'
  79. Note, selecting 'grub-doc' for glob 'grub*'
  80. Note, selecting 'grub-efi' for glob 'grub*'
  81. Note, selecting 'grub-emu' for glob 'grub*'
  82. Note, selecting 'grub-theme-breeze' for glob 'grub*'
  83. Note, selecting 'grub-legacy' instead of 'grub'
  84. Package 'grub-doc' is not installed, so not removed
  85. Package 'grub-efi-ia64' is not installed, so not removed
  86. Package 'grub-yeeloong' is not installed, so not removed
  87. Package 'grub-efi-arm' is not installed, so not removed
  88. Package 'grub-efi-arm64' is not installed, so not removed
  89. Package 'grub-uboot' is not installed, so not removed
  90. Package 'grub-efi-arm64-signed' is not installed, so not removed
  91. Note, selecting 'pv-grub-menu' instead of 'grub-legacy-ec2'
  92. Package 'grub-rescue-pc' is not installed, so not removed
  93. Package 'grub-theme-breeze' is not installed, so not removed
  94. Package 'grub-cloud-amd64' is not installed, so not removed
  95. Package 'grub2' is not installed, so not removed
  96. Package 'grub-pc' is not installed, so not removed
  97. Package 'grub-pc-bin' is not installed, so not removed
  98. Package 'grub-legacy' is not installed, so not removed
  99. Package 'grub-legacy-doc' is not installed, so not removed
  100. Package 'grub-customizer' is not installed, so not removed
  101. Package 'grub-efi' is not installed, so not removed
  102. Package 'grub-imageboot' is not installed, so not removed
  103. Package 'grub-efi-ia32' is not installed, so not removed
  104. Package 'grub-emu' is not installed, so not removed
  105. Package 'grub-coreboot' is not installed, so not removed
  106. Package 'grub-ieee1275' is not installed, so not removed
  107. Package 'grub-linuxbios' is not installed, so not removed
  108. Package 'grub-coreboot-bin' is not installed, so not removed
  109. Package 'grub-xen' is not installed, so not removed
  110. Package 'grub-coreboot-dbg' is not installed, so not removed
  111. Package 'grub-efi-amd64-dbg' is not installed, so not removed
  112. Package 'grub-efi-amd64-signed-template' is not installed, so not removed
  113. Package 'grub-efi-ia32-bin' is not installed, so not removed
  114. Package 'grub-efi-ia32-dbg' is not installed, so not removed
  115. Package 'grub-emu-dbg' is not installed, so not removed
  116. Package 'grub-firmware-qemu' is not installed, so not removed
  117. Package 'grub-ieee1275-bin' is not installed, so not removed
  118. Package 'grub-ieee1275-dbg' is not installed, so not removed
  119. Package 'grub-pc-dbg' is not installed, so not removed
  120. Package 'grub-theme-starfield' is not installed, so not removed
  121. Package 'grub-xen-bin' is not installed, so not removed
  122. Package 'grub-xen-dbg' is not installed, so not removed
  123. Package 'grub-xen-host' is not installed, so not removed
  124. Package 'grub-invaders' is not installed, so not removed
  125. Package 'grub-efi-ia32-signed:i386' is not installed, so not removed
  126. Package 'grub-efi-ia32-signed-template:i386' is not installed, so not removed
  127. The following packages were automatically installed and are no longer required:
  128.   baloo-kf5 catdoc dolphin efibootmgr ffmpegthumbs kdegraphics-thumbnailers
  129.   kfind kimageformat-plugins kuserfeedback-doc libdolphinvcs5 libepub0
  130.   libkf5baloo5 libkf5balooengine5 libkf5baloowidgets-bin libkf5baloowidgets5
  131.   libkf5filemetadata-bin libkf5filemetadata-data libkf5filemetadata3
  132.   libkf5idletime5 libkf5kdcraw5 libkf5konq6 libkf5newstuff-data
  133.   libkf5newstuff5 libkf5newstuffwidgets5 libkuserfeedbackcore1
  134.   libkuserfeedbackwidgets1 libpackagekitqt5-1 mokutil
  135.   qml-module-org-kde-userfeedback shim-helpers-amd64-signed shim-signed-common
  136.   shim-unsigned
  137. Use 'sudo apt autoremove' to remove them.
  138. The following packages will be REMOVED:
  139.   grub-common* grub-efi-amd64* grub-efi-amd64-bin* grub-efi-amd64-signed*
  140.   grub2-common* os-prober* shim-signed*
  141. 0 upgraded, 0 newly installed, 7 to remove and 2 not upgraded.
  142. After this operation, 55.3 MB disk space will be freed.
  143. Do you want to continue? [Y/n] Y
  144. perl: warning: Setting locale failed.
  145. perl: warning: Please check that your locale settings:
  146.         LANGUAGE = (unset),
  147.         LC_ALL = (unset),
  148.         LANG = "en_US.UTF-8"
  149.     are supported and installed on your system.
  150. perl: warning: Falling back to the standard locale ("C").
  151. locale: Cannot set LC_CTYPE to default locale: No such file or directory
  152. locale: Cannot set LC_MESSAGES to default locale: No such file or directory
  153. locale: Cannot set LC_ALL to default locale: No such file or directory
  154. E: Can not write log (Is /dev/pts mounted?) - posix_openpt (13: Permission denied)
  155. (Reading database ... 419102 files and directories currently installed.)
  156. Removing os-prober (1.81) ...
  157. dpkg: warning: while removing os-prober, directory '/var/lib/os-prober' not empty so not removed
  158. Removing shim-signed:amd64 (1.39+15.7-1) ...
  159. Removing grub-efi-amd64 (2.06-13+deb12u1) ...
  160. Removing grub-efi-amd64-bin (2.06-13+deb12u1) ...
  161. Removing grub-efi-amd64-signed (1+2.06+13+deb12u1) ...
  162. Removing grub2-common (2.06-13+deb12u1) ...
  163. Removing grub-common (2.06-13+deb12u1) ...
  164. Processing triggers for install-info (6.8-6+b1) ...
  165. install-info: Permission denied for /dev/null
  166. install-info: Permission denied for /dev/null
  167. install-info: Permission denied for /dev/null
  168. install-info: Permission denied for /dev/null
  169. install-info: Permission denied for /dev/null
  170. install-info: Permission denied for /dev/null
  171. install-info: Permission denied for /dev/null
  172. install-info: Permission denied for /dev/null
  173. install-info: Permission denied for /dev/null
  174. install-info: Permission denied for /dev/null
  175. install-info: Permission denied for /dev/null
  176. install-info: Permission denied for /dev/null
  177. install-info: Permission denied for /dev/null
  178. install-info: Permission denied for /dev/null
  179. install-info: Permission denied for /dev/null
  180. install-info: Permission denied for /dev/null
  181. install-info: Permission denied for /dev/null
  182. install-info: Permission denied for /dev/null
  183. install-info: Permission denied for /dev/null
  184. install-info: Permission denied for /dev/null
  185. Processing triggers for man-db (2.11.2-2) ...
  186. /var/lib/dpkg/info/man-db.postinst: 23: cannot create /dev/null: Permission denied
  187. (Reading database ... 418601 files and directories currently installed.)
  188. Purging configuration files for grub2-common (2.06-13+deb12u1) ...
  189. Purging configuration files for shim-signed:amd64 (1.39+15.7-1) ...
  190. Purging configuration files for grub-common (2.06-13+deb12u1) ...
  191. dpkg: warning: while removing grub-common, directory '/var/lib/grub/ucf' not empty so not removed
  192. Purging configuration files for grub-efi-amd64 (2.06-13+deb12u1) ...
  193. /var/lib/dpkg/info/grub-efi-amd64.postrm: 8: cannot create /dev/null: Permission denied
  194. /var/lib/dpkg/info/grub-efi-amd64.postrm: 11: cannot create /dev/null: Permission denied
  195. locale: Cannot set LC_CTYPE to default locale: No such file or directory
  196. locale: Cannot set LC_MESSAGES to default locale: No such file or directory
  197. locale: Cannot set LC_ALL to default locale: No such file or directory
  198. sh: 1: cannot create /dev/null: Permission denied
  199. sh: 1: cannot create /dev/null: Permission denied
  200. sh: 1: cannot create /dev/null: Permission denied
  201. debconf: unable to initialize frontend: Dialog
  202. debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd
  203. /Dialog.pm line 78.)
  204. debconf: falling back to frontend: Readline
  205. sh: 1: cannot create /dev/null: Permission denied
  206. sh: 1: cannot create /dev/null: Permission denied
  207. sh: 1: cannot create /dev/null: Permission denied
  208. sh: 1: cannot create /dev/null: Permission denied
  209. /var/lib/dpkg/info/grub-efi-amd64.postrm: 8: cannot create /dev/null: Permission denied
  210. /var/lib/dpkg/info/grub-efi-amd64.postrm: 11: cannot create /dev/null: Permission denied
  211. sh: 1: cannot create /dev/null: Permission denied
  212. 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'
  213. E: Sub-process returned an error code
  214. root@debian:/#      
  215.  
  216.  
  217.  

Quellcode

Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. PASTEBIN_DOWNLOAD_SNIPPET_EXPLAIN