apt-get install -f удерживаемые пакеты

У меня проблемы с обновлением пакетов в моей системе Ubuntu. Я следовал решению в вопросе здесь , используя его, я смог устранить ошибку, с которой я столкнулся при выполнении dpkg --configure -a, удалив поврежденные пакеты из файла в /var/lib/dpkg/status, но теперь после выполнения apt-get install -f ] Я получаю следующую ошибку. Пожалуйста помоги.

Я не знаю, потому что удаление указанных ниже пакетов из файла вызовет любую проблему в моей системе.

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

РЕДАКТИРОВАТЬ1

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)
0
задан 13 April 2017 в 15:24

1 ответ

Проблема возникла из-за символической ссылки, поэтому я создал ее, используя команду

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

, затем

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

, затем

dpkg --configure -a 

и

apt-get -f install

Это была проблема, связанная с модулем VMware.

Еще раз спасибо Фоссфридом и Оли

0
ответ дан 13 April 2017 в 15:24

Другие вопросы по тегам:

Похожие вопросы: