apt-get install -f pacotes retidos

0

Estou tendo problemas para atualizar os pacotes no meu sistema Ubuntu. Eu segui a solução na pergunta aqui ao usá-lo, consegui solucionar o erro que estava encontrando enquanto fazia dpkg --configure -a removendo os pacotes quebrados do arquivo em /var/lib/dpkg/status , mas agora, depois de executar apt-get install -f , recebi o seguinte erro . Por favor ajude.

Eu não sei porque remover os pacotes abaixo do arquivo causará qualquer problema no meu sistema.

apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
  apparmor: Depends: initramfs-tools but it is not installed
  brltty: Depends: initramfs-tools (>= 0.40ubuntu30) but it is not installed
  console-setup: Depends: initramfs-tools (>= 0.85eubuntu12) but it is not installed
  dmsetup: Depends: initramfs-tools but it is not installed
  kbd: Depends: initramfs-tools but it is not installed
  linux-image-2.6.32-38-generic: Depends: initramfs-tools (>= 0.36ubuntu6) but it is not installed
  ntfs-3g: Depends: initramfs-tools but it is not installed
  plymouth: Depends: initramfs-tools but it is not installed
  udev: Depends: initramfs-tools (>= 0.92bubuntu63) but it is not installed
  watershed: Depends: initramfs-tools but it is not installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies

EDIT1

apt-get --reinstall install initramfs-tools
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  initramfs-tools
0 upgraded, 1 newly installed, 0 to remove and 921 not upgraded.
1 not fully installed or removed.
Need to get 49.0kB of archives.
After this operation, 372kB of additional disk space will be used.
Get:1 http://in.archive.ubuntu.com/ubuntu/ precise-updates/main initramfs-tools 0.99ubuntu13.1 [49.0kB]
Fetched 49.0kB in 9s (5,302B/s)                                                                                                                             
Selecting previously deselected package initramfs-tools.
(Reading database ... 140222 files and directories currently installed.)
Unpacking initramfs-tools (from .../initramfs-tools_0.99ubuntu13.1_all.deb) ...
Processing triggers for doc-base ...
Processing 1 changed doc-base file(s)...
Registering documents with scrollkeeper...
Processing triggers for man-db ...
Setting up initramfs-tools (0.99ubuntu13.1) ...
cp: not writing through dangling symlink '/etc/initramfs-tools/modules'
dpkg: error processing initramfs-tools (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of watershed:
 watershed depends on initramfs-tools; however:
  Package initramfs-tools is not configured yet.
dpkg: error processing watershed (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
 initramfs-tools
 watershed
E: Sub-process /usr/bin/dpkg returned an error code (1)
    
por Tarun 30.08.2013 / 10:00

1 resposta

3

O problema foi causado devido ao symlink, então criei um usando o comando

ln -sf /etc/initramfs-tools/modules.AfterVMwareToolsInstall /etc/initramfs-tools/modules

então

mv /etc/initramfs-tools/modules{,BAK}; sudo touch /etc/initramfs-tools/modules

então

dpkg --configure -a 

e

apt-get -f install

Foi um problema relacionado ao módulo VMware.

Obrigado novamente a fossfreedom e Oli

    
por Tarun 30.08.2013 / 11:43