Eu tenho um servidor virtual na Host Europe. Eu tentei executar o docker e durante esse processo (até que percebi que não é possível) algo com os pacotes quebrados. apt-get purge ...
retorna:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'linux-generic-lts-wily' is not installed, so not removed
The following packages were automatically installed and are no longer required:
linux-headers-3.19.0-47 linux-headers-3.19.0-47-generic
linux-headers-generic-lts-vivid linux-headers-generic-lts-wily
linux-image-3.19.0-47-generic linux-image-extra-3.19.0-47-generic
linux-image-generic-lts-vivid
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
10 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "de_AT.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
Setting up linux-image-3.16.0-59-generic (3.16.0-59.79~14.04.1) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.img-4.2.0-25-generic
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.16.0-59-generic /boot/vmlinuz-3.16.0-59-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.16.0-59-generic /boot/vmlinuz-3.16.0-59-generic
update-initramfs: Generating /boot/initrd.img-3.16.0-59-generic
E: /usr/share/initramfs-tools/hooks/fixrtc failed with return 1.
update-initramfs: failed for /boot/initrd.img-3.16.0-59-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.16.0-59-generic.postinst line 1025.
dpkg: error processing package linux-image-3.16.0-59-generic (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up linux-image-3.19.0-47-generic (3.19.0-47.53~14.04.1) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.img-3.16.0-59-generic
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.19.0-47-generic /boot/vmlinuz-3.19.0-47-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.19.0-47-generic /boot/vmlinuz-3.19.0-47-generic
update-initramfs: Generating /boot/initrd.img-3.19.0-47-generic
E: /usr/share/initramfs-tools/hooks/fixrtc failed with return 1.
update-initramfs: failed for /boot/initrd.img-3.19.0-47-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-3.19.0-47-generic.postinst line 1025.
dpkg: error processing package linux-image-3.19.0-47-generic (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up linux-image-4.2.0-25-generic (4.2.0-25.30~14.04.1) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.img-3.19.0-47-generic
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.2.0-25-generic /boot/vmlinuz-4.2.0-25-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.2.0-25-generic /boot/vmlinuz-4.2.0-25-generic
update-initramfs: Generating /boot/initrd.img-4.2.0-25-generic
E: /usr/share/initramfs-tools/hooks/fixrtc failed with return 1.
update-initramfs: failed for /boot/initrd.img-4.2.0-25-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-4.2.0-25-generic.postinst line 1025.
dpkg: error processing package linux-image-4.2.0-25-generic (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of linux-image-extra-3.16.0-59-generic:
linux-image-extra-3.16.0-59-generic depends on linux-image-3.16.0-59-generic; however:
Package linux-image-3.16.0-59-generic is not configured yet.
dpkg: error processing package linux-image-extra-3.16.0-59-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-generic-lts-utopic:
linux-image-generic-lts-utopic depends on linux-image-3.16.0-59-generic; however:
Package linux-image-3.16.0-59-generic is not configured yet.
linux-image-generic-lts-utopic depends on linux-image-extra-3.16.0-59-generic; however:
Package linux-image-extra-3.16.0-59-generic is not configured yet.
dpkg: error processing package linux-image-generic-lts-utopic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic-lts-utopic:
linux-generic-lts-utopic depends on linux-image-generic-lts-utopic (= 3.16.0.59.50); however:
Package linux-image-generic-lts-utopic is not configured yet.
dpkg: error processing package linux-generic-lts-utopic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-extra-3.19.0-47-generic:
linux-image-extra-3.19.0-47-generic depends on linux-image-3.19.0-47-generic; however:
Package linux-image-3.19.0-47-generic is not configured yet.
dpkg: error processing package linux-image-extra-3.19.0-47-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-extra-4.2.0-25-generic:
linux-image-extra-4.2.0-25-generic depends on linux-image-4.2.0-25-generic; however:
Package linux-image-4.2.0-25-generic is not configured yet.
dpkg: error processing package linux-image-extra-4.2.0-25-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-generic-lts-vivid:
linux-image-generic-lts-vivid depends on linux-image-3.19.0-47-generic; however:
Package linux-image-3.19.0-47-generic is not configured yet.
linux-image-generic-lts-vivid depends on linux-image-extra-3.19.0-47-generic; however:
Package linux-image-extra-3.19.0-47-generic is not configured yet.
dpkg: error processing package linux-image-generic-lts-vivid (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-generic-lts-wily:
linux-image-generic-lts-wily depends on linux-image-4.2.0-25-generic; however:
Package linux-image-4.2.0-25-generic is not configured yet.
linux-image-generic-lts-wily depends on linux-image-extra-4.2.0-25-generic; however:
Package linux-image-extra-4.2.0-25-generic is not configured yet.
dpkg: error processing package linux-image-generic-lts-wily (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-3.16.0-59-generic
linux-image-3.19.0-47-generic
linux-image-4.2.0-25-generic
linux-image-extra-3.16.0-59-generic
linux-image-generic-lts-utopic
linux-generic-lts-utopic
linux-image-extra-3.19.0-47-generic
linux-image-extra-4.2.0-25-generic
linux-image-generic-lts-vivid
linux-image-generic-lts-wily
E: Sub-process /usr/bin/dpkg returned an error code (1)
O suporte respondeu ao meu pedido:
You tried to install some kernel-modules. This is not possible on a virtual server, since it's just a partly visualization where you can't customize the kerenel. Since the recent server status is very prone to errors and inconsistencies we recommend that you reinstall your server.
Eu realmente não quero e estou procurando uma maneira de reverter minhas alterações.
Enquanto tentava instalar a janela de encaixe, alterei a origem do pacote em /etc/apt/sources.list
dos hosts europeus personalizados para os padrões padrão.
Aqui está também uma lista dos pacotes instalados: link
Seria ótimo se alguém pudesse me ajudar a fazer o gerenciamento de pacotes funcionar novamente!