Обновление Debian - Ошибка обработки страниц руководства

Я обновляюсь с Debian 7 (Wheezy) до 9 (Stretch).

Я пробовал:

apt-get clean
apt-get update
apt-get upgrade

Я получаю сообщение об ошибке при попытке распаковать справочные страницы, которые он выглядит как.

Вывод:

After this operation, 585 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ftp.us.debian.org/debian/ stretch/main manpages all 4.10-2 [1,222 kB]
Fetched 1,222 kB in 0s (2,055 kB/s)
Reading changelogs... Done
(Reading database ... 187746 files and directories currently installed.)
Preparing to replace manpages 3.44-1 (using .../manpages_4.10-2_all.deb) ...
Unpacking replacement manpages ...
dpkg: error processing /var/cache/apt/archives/manpages_4.10-2_all.deb (--unpack):
 trying to overwrite '/usr/share/man/man1/iconv.1.gz', which is also in package libc-bin 2.13-38+deb7u12
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/manpages_4.10-2_all.deb
W: Ignoring Provides line with DepCompareOp for package libapt-inst
W: Ignoring Provides line with DepCompareOp for package libapt-pkg
W: Ignoring Provides line with DepCompareOp for package libespeak-dev
W: Ignoring Provides line with DepCompareOp for package libespeak1
W: Ignoring Provides line with DepCompareOp for package libgpgme11-dev
W: Ignoring Provides line with DepCompareOp for package kodi-api-guilib
W: Ignoring Provides line with DepCompareOp for package kodi-api-pvr
W: Ignoring Provides line with DepCompareOp for package libparse-cpan-meta-perl
W: Ignoring Provides line with DepCompareOp for package libjpeg62
W: Ignoring Provides line with DepCompareOp for package lsb
W: Ignoring Provides line with DepCompareOp for package lsb-core
W: Ignoring Provides line with DepCompareOp for package php-psr-log-implementation
W: Ignoring Provides line with DepCompareOp for package php-seclib
W: Ignoring Provides line with DepCompareOp for package php-sabre-http
W: Ignoring Provides line with DepCompareOp for package php-math-biginteger
W: Ignoring Provides line with DepCompareOp for package pkg-config
W: Ignoring Provides line with DepCompareOp for package pypy-cffi
W: Ignoring Provides line with DepCompareOp for package pypy-cffi-backend-api-max
W: Ignoring Provides line with DepCompareOp for package pypy-cffi-backend-api-min
W: Ignoring Provides line with DepCompareOp for package python-cffi-backend-api-max
W: Ignoring Provides line with DepCompareOp for package python-cffi-backend-api-min
W: Ignoring Provides line with DepCompareOp for package python3-cffi-backend-api-max
W: Ignoring Provides line with DepCompareOp for package python3-cffi-backend-api-min
W: Ignoring Provides line with DepCompareOp for package sagenb-export
W: Ignoring Provides line with DepCompareOp for package sagenb-export
W: You may want to run apt-get update to correct these problems
E: Sub-process /usr/bin/dpkg returned an error code (1)

Я также пытался заставить его:

dpkg -i --force-overwrite /var/cache/apt/archives/manpages_4.10-2_all.deb

(Reading database ... 187746 files and directories currently installed.)
Preparing to replace manpages 3.44-1 (using .../manpages_4.10-2_all.deb) ...
Unpacking replacement manpages ...
dpkg: warning: overriding problem because --force enabled:
 trying to overwrite '/usr/share/man/man1/iconv.1.gz', which is also in package libc-bin 2.13-38+deb7u12
dpkg: warning: overriding problem because --force enabled:
 trying to overwrite '/usr/share/man/man1/ldd.1.gz', which is also in package libc-bin 2.13-38+deb7u12
dpkg: warning: overriding problem because --force enabled:
 trying to overwrite '/usr/share/man/man1/locale.1.gz', which is also in package libc-bin 2.13-38+deb7u12
dpkg: warning: overriding problem because --force enabled:
 trying to overwrite '/usr/share/man/man1/localedef.1.gz', which is also in package libc-bin 2.13-38+deb7u12
dpkg: warning: overriding problem because --force enabled:
 trying to overwrite '/usr/share/man/man1/mtrace.1.gz', which is also in package libc-dev-bin 2.13-38+deb7u12
dpkg: warning: overriding problem because --force enabled:
 trying to overwrite '/usr/share/man/man1/sprof.1.gz', which is also in package libc-dev-bin 2.13-38+deb7u12
dpkg: warning: overriding problem because --force enabled:
 trying to overwrite '/usr/share/man/man5/gai.conf.5.gz', which is also in package libc-bin 2.13-38+deb7u12
dpkg: warning: overriding problem because --force enabled:
 trying to overwrite '/usr/share/man/man8/iconvconfig.8.gz', which is also in package libc-bin 2.13-38+deb7u12
dpkg: warning: overriding problem because --force enabled:
 trying to overwrite '/usr/share/man/man8/ld.so.8.gz', which is also in package libc-bin 2.13-38+deb7u12
dpkg: warning: overriding problem because --force enabled:
 trying to overwrite '/usr/share/man/man8/ldconfig.8.gz', which is also in package libc-bin 2.13-38+deb7u12
dpkg: warning: overriding problem because --force enabled:
 trying to overwrite '/usr/share/man/man8/zic.8.gz', which is also in package libc-bin 2.13-38+deb7u12
Setting up manpages (4.10-2) ...
Processing triggers for man-db ...
121- --109362- apt-get заблокирован драйверами nvidia Я обновлял свою машину, пока некоторые драйверы не работали. После перезагрузки мой X-сервер сломался, и я его переустановил. Теперь apt-get застревает с этой ошибкой: ╭─phra at kali in / home / phra ╰─λ sudo ...

Я обновлял свою машину, когда некоторые драйверы вышли из строя. После перезагрузки мой X-сервер был сломан, и я переустановил его.

Теперь apt-get застрял с этой ошибкой:

╭─phra at kali in /home/phra
╰─λ sudo apt-get install -f                                                                                                                                                       0 < 15:56:15
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
  libxnvctrl0
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  glx-alternative-nvidia
Suggested packages:
  nvidia-driver
The following NEW packages will be installed:
  glx-alternative-nvidia
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/19.8 kB of archives.
After this operation, 46.1 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package glx-alternative-nvidia.
(Reading database ... 385691 files and directories currently installed.)
Preparing to unpack .../glx-alternative-nvidia_0.8.0_amd64.deb ...
Unpacking glx-alternative-nvidia (0.8.0) ...
dpkg: dependency problems prevent configuration of glx-alternative-nvidia:
 glx-alternative-nvidia depends on glx-diversions (= 0.8.0); however:
  Package glx-diversions is not installed.

dpkg: error processing package glx-alternative-nvidia (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of nvidia-alternative:
 nvidia-alternative depends on glx-alternative-nvidia (>= 0.7); however:
  Package glx-alternative-nvidia is not configured yet.

dpkg: error processing package nvidia-alternative (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 glx-alternative-nvidia
 nvidia-alternative
E: Sub-process /usr/bin/dpkg returned an error code (1)

Я уже пробовал эти команды:

╭─phra at kali in /home/phra
╰─λ sudo apt-get remove glx-alternative-nvidia glx-diversions nvidia-alternative                                                                                                  0 < 16:15:48
[sudo] password for phra: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libegl-nvidia0 : Depends: nvidia-alternative (= 375.82-4) but it is not going to be installed
 libglx-nvidia0 : Depends: nvidia-alternative (= 375.82-4) but it is not going to be installed
 libnvidia-ml1 : Depends: nvidia-alternative (= 375.82-4) but it is not going to be installed
 nvidia-vdpau-driver : Depends: nvidia-alternative (= 375.82-4) but it is not going to be installed
                       Recommends: nvidia-kernel-dkms (= 375.82-4) but it is not going to be installed or
                                   nvidia-kernel-375.82
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

и

╭─phra at kali in /home/phra
╰─λ sudo apt-get install -f glx-diversions                                                                                                                                        0 < 16:22:54
Reading package lists... Done
Building dependency tree       
Reading state information... Done
glx-diversions is already the newest version (0.8.0).
The following package was automatically installed and is no longer required:
  libxnvctrl0
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
Need to get 0 B/10.5 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] 
dpkg: dependency problems prevent configuration of glx-alternative-nvidia:
 glx-alternative-nvidia depends on glx-diversions (= 0.8.0); however:
  Package glx-diversions is not installed.

dpkg: error processing package glx-alternative-nvidia (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of nvidia-alternative:
 nvidia-alternative depends on glx-alternative-nvidia (>= 0.7); however:
  Package glx-alternative-nvidia is not configured yet.

dpkg: error processing package nvidia-alternative (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 glx-alternative-nvidia
 nvidia-alternative
E: Sub-process /usr/bin/dpkg returned an error code (1)

] и

╭─phra at kali in /home/phra
╰─λ sudo dpkg --configure -a                                                                                                                                                      0 < 16:23:15
dpkg: dependency problems prevent configuration of glx-alternative-nvidia:
 glx-alternative-nvidia depends on glx-diversions (= 0.8.0); however:
  Package glx-diversions is not installed.

dpkg: error processing package glx-alternative-nvidia (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of nvidia-alternative:
 nvidia-alternative depends on glx-alternative-nvidia (>= 0.7); however:
  Package glx-alternative-nvidia is not configured yet.

dpkg: error processing package nvidia-alternative (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 glx-alternative-nvidia
 nvidia-alternative

Вы знаете, как я могу исправить ситуацию?

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

Я исправил apt, но не могу восстановить gnome.

╭─phra at kali in /home/phra
╰─λ sudo service gdm3 status                                                                                                                                     0 < 18:49:41
● gdm.service - GNOME Display Manager
   Loaded: loaded (/lib/systemd/system/gdm.service; static; vendor preset: enabled)
   Active: inactive (dead)

Oct 17 18:50:27 kali gdm-launch-environment][10388]: pam_unix(gdm-launch-environment:session): session opened for user Debian-gdm by (uid=0)
Oct 17 18:50:35 kali gdm3[10379]: Child process -10392 was already dead.
Oct 17 18:50:35 kali gdm3[10379]: Child process 10388 was already dead.
Oct 17 18:50:35 kali gdm3[10379]: Unable to kill session worker process
Oct 17 18:50:35 kali gdm-launch-environment][10431]: pam_unix(gdm-launch-environment:session): session opened for user Debian-gdm by (uid=0)
Oct 17 18:50:47 kali systemd[1]: Stopping GNOME Display Manager...
Oct 17 18:50:47 kali gdm3[10379]: GLib: g_variant_new_string: assertion 'string != NULL' failed
Oct 17 18:50:47 kali gdm3[10379]: GLib: g_variant_new_string: assertion 'string != NULL' failed
Oct 17 18:50:47 kali gdm3[10379]: GLib: g_hash_table_find: assertion 'version == hash_table->version' failed
Oct 17 18:50:47 kali systemd[1]: Stopped GNOME Display Manager.
1
задан 17 October 2017 в 19:56
1 ответ

вот команда для разблокировки apt

╭─phra at kali in /home/phra
╰─λ sudo dpkg --force-all -i /var/cache/apt/archives/glx-diversions_0.7.4_amd64.deb 0 < 17:47:06
[sudo] password for phra: 
(Reading database ... 385701 files and directories currently installed.)
Preparing to unpack .../glx-diversions_0.7.4_amd64.deb ...
Unpacking glx-diversions (0.7.4) over (0.8.0) ...
dpkg: glx-diversions: dependency problems, but configuring anyway as you requested:
glx-diversions depends on glx-alternative-mesa (= 0.7.4); however:
Version of glx-alternative-mesa on system is 0.8.0.
libgl1:amd64 (0.2.999+git20170802-5) breaks glx-diversions (<< 0.8) and is installed.
Version of glx-diversions to be configured is 0.7.4.

Setting up glx-diversions (0.7.4) ...
Removing diverted 'libGL.so.1' symlink with unexpected target 'libGL.so.1.0.0'.
Restoring diverted 'libGL.so.1' symlink.
Processing triggers for glx-alternative-mesa (0.8.0) ...
Processing triggers for libc-bin (2.24-17) ...
╭─phra at kali in /home/phra
╰─λ sudo apt-get install -f                                                                                                                                                       0 < 18:13:19
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
  libxnvctrl0
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  glx-diversions
The following packages will be upgraded:
  glx-diversions
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 0 B/10.5 kB of archives.
After this operation, 1,024 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Reading changelogs... Done
(Reading database ... 385727 files and directories currently installed.)
Preparing to unpack .../glx-diversions_0.8.0_amd64.deb ...
Unpacking glx-diversions (0.8.0) over (0.7.4) ...
Setting up glx-diversions (0.8.0) ...
Processing triggers for glx-alternative-mesa (0.8.0) ...
Setting up glx-alternative-nvidia (0.8.0) ...
Processing triggers for glx-alternative-nvidia (0.8.0) ...
Setting up nvidia-alternative (375.82-4) ...
Processing triggers for libc-bin (2.24-17) ...
Processing triggers for update-glx (0.8.0) ...
Processing triggers for nvidia-alternative (375.82-4) ...
update-alternatives: using /usr/lib/nvidia/current to provide /usr/lib/nvidia/nvidia (nvidia) in auto mode
Processing triggers for glx-alternative-nvidia (0.8.0) ...
update-alternatives: using /usr/lib/nvidia to provide /usr/lib/glx (glx) in auto mode
Processing triggers for libc-bin (2.24-17) ...
Processing triggers for initramfs-tools (0.130) ...
update-initramfs: Generating /boot/initrd.img-4.13.0-kali1-amd64
WARNING: Setting CRYPTSETUP in /etc/initramfs-tools/initramfs.conf is deprecated and will stop working in the future. Use /etc/cryptsetup-initramfs/conf-hook instead.
3
ответ дан 3 December 2019 в 18:29

Теги

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