dpkg: processamento de erros (--configure) no Ubuntu 16.04 live USB

0

Estou usando o Ubuntu 16.04 em um USB ao vivo, sob um NUC da Intel. Eu usei o YUMI para criar o USB ao vivo e tenho outros SOs como o USB.

Quando inicializo o USB, recebo um erro pop-up que diz initramfs-tools 0.122ubuntu8.1 has problems . Quando tento atualizar, recebo o seguinte erro

Removing plymouth-theme-ubuntu-text (0.9.2-3ubuntu13.1) ...
update-initramfs: deferring update (trigger activated)
cp: cannot create regular file '/cdrom/casper/initrd.gz.new': No such file or directory
dpkg: error processing package plymouth-theme-ubuntu-text (--remove):
 subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
 plymouth-theme-ubuntu-text
E: Sub-process /usr/bin/dpkg returned an error code (1)

Então eu tento apt-get -f install :

root@ubuntu:/home/ubuntu# sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  gir1.2-rb-3.0 gir1.2-secret-1 gir1.2-udisks-2.0 gnome-video-effects
  guile-2.0-libs libandroid-properties1 libdmapsharing-3.0-2 libevent-2.0-5
  libgc1c2 libgpod-common libgpod4 libnatpmp1 liboxideqt-qmlplugin
  liboxideqtcore0 liboxideqtquick0 libqqwing2v5 libqt5positioning5
  librhythmbox-core9 libsgutils2-2 media-player-info oxideqt-codecs
  python3-brlapi python3-louis python3-mako python3-pyatspi python3-speechd
  qml-module-qt-labs-folderlistmodel qml-module-qt-labs-settings
  qml-module-ubuntu-onlineaccounts qml-module-ubuntu-web
  qtdeclarative5-accounts-plugin qtdeclarative5-qtquick2-plugin rhythmbox-data
  signon-keyring-extension syslinux syslinux-common syslinux-legacy
  transmission-common unity-webapps-qml usb-creator-common xbrlapi
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  plymouth-theme-ubuntu-text
0 upgraded, 0 newly installed, 1 to remove and 335 not upgraded.
12 not fully installed or removed.
After this operation, 53.2 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 218095 files and directories currently installed.)
Removing plymouth-theme-ubuntu-text (0.9.2-3ubuntu13.1) ...
update-initramfs: deferring update (trigger activated)
cp: cannot create regular file '/cdrom/casper/initrd.gz.new': No such file or directory
dpkg: error processing package plymouth-theme-ubuntu-text (--remove):
 subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
 plymouth-theme-ubuntu-text
E: Sub-process /usr/bin/dpkg returned an error code (1)

Autoremove também não corrige nada. Não há problema de dependências, então toda a questão do askubuntu que encontrei não resolve o problema. Encontrei este link no link

do launchpad

Quando tento removê-lo

root@ubuntu:/home/ubuntu# apt-get remove --purge plymouth-theme-ubuntu-text
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  gir1.2-rb-3.0 gir1.2-secret-1 gir1.2-udisks-2.0 gnome-video-effects
  guile-2.0-libs libandroid-properties1 libdmapsharing-3.0-2 libevent-2.0-5
  libgc1c2 libgpod-common libgpod4 libnatpmp1 liboxideqt-qmlplugin
  liboxideqtcore0 liboxideqtquick0 libqqwing2v5 libqt5positioning5
  librhythmbox-core9 libsgutils2-2 media-player-info oxideqt-codecs
  python3-brlapi python3-louis python3-mako python3-pyatspi python3-speechd
  qml-module-qt-labs-folderlistmodel qml-module-qt-labs-settings
  qml-module-ubuntu-onlineaccounts qml-module-ubuntu-web
  qtdeclarative5-accounts-plugin qtdeclarative5-qtquick2-plugin rhythmbox-data
  signon-keyring-extension syslinux syslinux-common syslinux-legacy
  transmission-common unity-webapps-qml usb-creator-common xbrlapi
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  plymouth-theme-ubuntu-text*
0 upgraded, 0 newly installed, 1 to remove and 335 not upgraded.
12 not fully installed or removed.
After this operation, 53.2 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 218100 files and directories currently installed.)
Removing plymouth-theme-ubuntu-text (0.9.2-3ubuntu13.1) ...
update-initramfs: deferring update (trigger activated)
cp: cannot create regular file '/cdrom/casper/initrd.gz.new': No such file or directory
dpkg: error processing package plymouth-theme-ubuntu-text (--purge):
 subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
 plymouth-theme-ubuntu-text
E: Sub-process /usr/bin/dpkg returned an error code (1)

E reinstale

root@ubuntu:/home/ubuntu# sudo apt-get install plymouth-theme-ubuntu-text
Reading package lists... Done
Building dependency tree       
Reading state information... Done
plymouth-theme-ubuntu-text is already the newest version (0.9.2-3ubuntu13.1).
The following packages were automatically installed and are no longer required:
  gir1.2-rb-3.0 gir1.2-secret-1 gir1.2-udisks-2.0 gnome-video-effects
  guile-2.0-libs libandroid-properties1 libdmapsharing-3.0-2 libevent-2.0-5
  libgc1c2 libgpod-common libgpod4 libnatpmp1 liboxideqt-qmlplugin
  liboxideqtcore0 liboxideqtquick0 libqqwing2v5 libqt5positioning5
  librhythmbox-core9 libsgutils2-2 media-player-info oxideqt-codecs
  python3-brlapi python3-louis python3-mako python3-pyatspi python3-speechd
  qml-module-qt-labs-folderlistmodel qml-module-qt-labs-settings
  qml-module-ubuntu-onlineaccounts qml-module-ubuntu-web
  qtdeclarative5-accounts-plugin qtdeclarative5-qtquick2-plugin rhythmbox-data
  signon-keyring-extension syslinux syslinux-common syslinux-legacy
  transmission-common unity-webapps-qml usb-creator-common xbrlapi
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 335 not upgraded.
12 not fully installed or removed.
Need to get 0 B/9,078 B of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up initramfs-tools (0.122ubuntu8) ...
update-initramfs: deferring update (trigger activated)
cp: cannot create regular file '/cdrom/casper/initrd.gz.new': No such file or directory
dpkg: error processing package initramfs-tools (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of plymouth:
 plymouth depends on initramfs-tools | dracut; however:
  Package initramfs-tools is not configured yet.
  Package dracut is not installed.

dpkg: error processing package plymouth (--configure):
 dependency problems - leaving unconfigured
dpkg: error processing package plymouth-theme-ubuntu-text (--configure):
 package plymouth-theme-ubuntu-text is not ready for configuration
 cannot configure (current status 'half-installed')
No apport report written because the error message indicates its a followup error from a previous failure.'
' dpkg: dependency problems prevent configuration of linux-image-4.4.0-31-generic:
 linux-image-4.4.0-31-generic depends on initramfs-tools | linux-initramfs-tool; however:
  Package initramfs-tools is not configured yet.
  Package linux-initramfs-tool is not installed.
  Package initramfs-tools which provides linux-initramfs-tool is not configured yet.

dpkg: error processing package linux-image-4.4.0-31-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-extra-4.4.0-31-generic:
 linux-image-extra-4.4.0-31-generic depends on linux-image-4.4.0-31-generic; however:
  Package linux-image-4.4.0-31-generic is not configured yet.

dpkg: error processing package linux-image-extra-4.4.0-31-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-generic:
 linux-image-generic depends on linux-image-4.4.0-31-generic; however:
  Package linux-image-4.4.0-31No apport report written because MaxReports is reached already
 No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
-generic is not configured yet.
linux-image-generic depends on linux-image-extra-4.4.0-31-generic; however:
Package linux-image-extra-4.4.0-31-generic is not configured yet.

dpkg: error processing package linux-image-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
 linux-generic depends on linux-image-generic (= 4.4.0.31.33); however:
  Package linux-image-generic is not configured yet.

dpkg: error processing package linux-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-signed-image-4.4.0-31-generic:
 linux-signed-image-4.4.0-31-generic depends on linux-image-4.4.0-31-generic (= 4.4.0-31.50); however:
  Package linux-image-4.4.0-31-generic is not configured yet.

dpkg: error processing package linux-signed-image-4.4.0-31-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configurNo apport report written because MaxReports is reached already
 No apport report written because MaxReports is reached already
 No apport report written because MaxReports is reached already
ation of linux-signed-image-generic:
 linux-signed-image-generic depends on linux-signed-image-4.4.0-31-generic; however:
  Package linux-signed-image-4.4.0-31-generic is not configured yet.
 linux-signed-image-generic depends on linux-image-extra-4.4.0-31-generic; however:
  Package linux-image-extra-4.4.0-31-generic is not configured yet.

dpkg: error processing package linux-signed-image-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-signed-generic:
 linux-signed-generic depends on linux-signed-image-generic (= 4.4.0.31.33); however:
  Package linux-signed-image-generic is not configured yet.

dpkg: error processing package linux-signed-generic (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of plymouth-label:
 plymouth-label depends on plymouth (= 0.9.2-3ubuntu13.1); however:
  Package plymouth is not configured yet.

dpkg: error processing package plymoNo apport report written because MaxReports is reached already
                  No apport report written because MaxReports is reached already
                                                                               uth-label (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of plymouth-theme-ubuntu-logo:
 plymouth-theme-ubuntu-logo depends on plymouth (= 0.9.2-3ubuntu13.1); however:
  Package plymouth is not configured yet.
 plymouth-theme-ubuntu-logo depends on plymouth-label (= 0.9.2-3ubuntu13.1); however:
  Package plymouth-label is not configured yet.

dpkg: error processing package plymouth-theme-ubuntu-logo (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 initramfs-tools
 plymouth
 plymouth-theme-ubuntu-text
 linux-image-4.4.0-31-generic
 linux-image-extra-4.4.0-31-generic
 linux-image-generic
 linux-generic
 linux-signed-image-4.4.0-31-generic
 linux-signed-image-generic
 linux-signed-generic
 plymouth-label
 plymouth-theme-ubuntu-logo
E: Sub-process /usr/bin/dpkg returned an error code (1)

Alguém sabe alguma correção para isso?

Obrigado antecipadamente

R.

    
por kek 20.07.2016 / 08:06

2 respostas

1

Após um mês de pesquisa, descobri por que recebi os erros.

Eu estava executando o Ubuntu em um estado Live, onde depois de executar apt-get upgrade , meu kernel foi atualizado, com o resultado dos erros acima. Para corrigir o erro e permitir a instalação de arquivos novamente, fiz o seguinte ISSO PODE FAZER O SISTEMA UNIVERSÁVEL .

  1. mkinitramfs - u : isso criará um initramps img.
  2. update-initramfs - u : atualize o img
  3. Agora, execute which update-initramfs para encontrar o arquivo de configuração que está nos dando o erro
  4. Adicione uma saída ao arquivo de configuração para que você não receba o código de erro. No meu caso, na linha 3, acabei de adicionar a saída 0.
  5. apt-get -f install

Com um pouco de sorte, o kernel não será esmagado e o problema será corrigido. Se não, seu sistema morreu, desculpe. Esta não é uma solução, nós estamos apenas adicionando uma saída para o script, então não seremos informados sobre o erro e poderemos instalar pacotes.

Conclusão : nunca atualize um sistema ao vivo, a menos que você saiba o que está fazendo. O kernel é tão delicado.

    
por kek 02.09.2016 / 10:52
0

Tente:

  1. Execute novamente $ apt-get remove --purge plymouth-theme-ubuntu-text
  2. $ whereis plymouth-theme-ubuntu-text
  3. Remova manualmente tudo o que encontrar relacionado a ele
  4. Reinstale o plymouth-theme-ubuntu-text

Deixe-me saber se funciona para você, funcionou para mim em um caso diferente

    
por Hellas 20.07.2016 / 08:44