LINUX.ORG.RU

Проблема с установкой пакета из репозитория

 , , ,


0

1

Здравствуйте, господа

root@debian:/etc/apt# apt-get update && apt-get upgrade -y
Hit:1 http://security.debian.org/debian-security buster/updates InRelease
Hit:2 http://repository.spotify.com stable InRelease                                                                            
Hit:3 http://deb.debian.org/debian buster InRelease                                                                             
Hit:4 http://deb.debian.org/debian buster-updates InRelease        
Hit:5 https://repo.skype.com/deb stable InRelease
Reading package lists... Done                
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Затем:
root@debian:/etc/apt# apt-get install nvidia-driver-libs-i386 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 nvidia-driver-libs-i386:i386 : Depends: nvidia-driver-libs:i386 (= 418.113-1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

sources.list

deb http://deb.debian.org/debian/ buster main contrib non-free
deb-src http://deb.debian.org/debian/ buster main contrib non-free

deb http://security.debian.org/debian-security buster/updates main
deb-src http://security.debian.org/debian-security buster/updates main

deb http://deb.debian.org/debian/ buster-updates main contrib non-free
deb-src http://deb.debian.org/debian/ buster-updates main contrib non-free

Что я делаю не так?

★★★

Ответ на: комментарий от gremlin_the_red
root@debian:~# apt-cache showpkg nvidia-driver-libs
Package: nvidia-driver-libs
Versions:
418.74-1 (/var/lib/apt/lists/deb.debian.org_debian_dists_buster_non-free_binary-amd64_Packages) (/var/lib/dpkg/status)
 Description Language:
                 File: /var/lib/apt/lists/deb.debian.org_debian_dists_buster_non-free_binary-amd64_Packages
                  MD5: 316d7881efd72c30ac3f0e1720998a13
 Description Language:
                 File: /var/lib/apt/lists/deb.debian.org_debian_dists_buster_non-free_binary-i386_Packages
                  MD5: 316d7881efd72c30ac3f0e1720998a13
 Description Language: en
                 File: /var/lib/apt/lists/deb.debian.org_debian_dists_buster_non-free_i18n_Translation-en
                  MD5: 316d7881efd72c30ac3f0e1720998a13


Reverse Depends:
  nvidia-driver-libs:i386,nvidia-driver-libs 418.113-1
  nvidia-driver-libs-nonglvnd:i386,nvidia-driver-libs
  nvidia-driver-libs:i386,nvidia-driver-libs 418.113-1
  nvidia-driver,nvidia-driver-libs 418.74-1
  libegl1-nvidia:i386,nvidia-driver-libs
  nvidia-driver-libs-nonglvnd,nvidia-driver-libs
  primus,nvidia-driver-libs 0
  libegl1-nvidia,nvidia-driver-libs
  primus:i386,nvidia-driver-libs 0
Dependencies:
418.74-1 - libgl1-nvidia-glvnd-glx (5 418.74-1) nvidia-egl-icd (5 418.74-1) libegl1-glvnd-nvidia (0 (null)) libgl1-glvnd-nvidia-glx (0 (null)) libgldispatch0-nvidia (0 (null)) libgles1-glvnd-nvidia (0 (null)) libgles2-glvnd-nvidia (0 (null)) libglvnd0-nvidia (0 (null)) libglx0-glvnd-nvidia (0 (null)) libopengl0-glvnd-nvidia (0 (null)) libegl1-nvidia (0 (null)) libgl1-nvidia-glx (0 (null)) libgl1-nvidia-glx:i386 (0 (null)) nvidia-driver-libs-nonglvnd (0 (null)) nvidia-driver-libs-nonglvnd:i386 (0 (null)) nvidia-nonglvnd-vulkan-icd (0 (null)) nvidia-driver-libs-i386 (0 (null)) libopengl0 (16 (null)) libopengl0-glvnd-nvidia (0 (null)) libglx-nvidia0 (5 418.74-1) libgles-nvidia1 (5 418.74-1) libgles-nvidia2 (5 418.74-1) libnvidia-cfg1 (5 418.74-1) nvidia-vulkan-icd (5 418.74-1) libegl1-nvidia:i386 (0 (null)) libgl1-glvnd-nvidia-glx:i386 (0 (null)) libgles1-glvnd-nvidia:i386 (0 (null)) libgles2-glvnd-nvidia:i386 (0 (null)) libglx0-glvnd-nvidia:i386 (0 (null)) libopengl0-glvnd-nvidia:i386 (0 (null)) nvidia-driver-libs:i386 (35 418.74-1) nvidia-driver-libs:i386 (38 418.74-1) nvidia-nonglvnd-vulkan-icd:i386 (0 (null)) libegl1-glvnd-nvidia:i386 (0 (null))
Provides:
418.74-1 -
Reverse Provides:
disee ★★★ ()
Ответ на: комментарий от Deleted
root@debian:~# apt install nvidia-driver-libs:i386 nvidia-driver-libs-i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 nvidia-driver-libs:i386 : Depends: libgl1-nvidia-glvnd-glx:i386 (= 418.113-1) but it is not going to be installed
                           Depends: nvidia-egl-icd:i386 (= 418.113-1) but it is not going to be installed
                           Breaks: libgl1-nvidia-glx but 418.74-1 is to be installed
                           Breaks: nvidia-nonglvnd-vulkan-icd but 418.74-1 is to be installed
                           Recommends: libglx-nvidia0:i386 (= 418.113-1) but it is not going to be installed
                           Recommends: libgles-nvidia1:i386 (= 418.113-1) but it is not going to be installed
                           Recommends: libgles-nvidia2:i386 (= 418.113-1) but it is not going to be installed
                           Recommends: nvidia-vulkan-icd:i386 (= 418.113-1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
disee ★★★ ()
Последнее исправление: disee (всего исправлений: 1)
Ответ на: комментарий от disee
Package: nvidia-driver-libs
Versions:
418.74-1 (/var/lib/apt/lists/deb.debian.org_debian_dists_buster_non-free_binary-amd64_Packages) (/var/lib/dpkg/status)

Выглядит, как будто пакет установлен и более ранней версии. Тогда что скажет

dpkg-query -l nvidia-driver-libs

gremlin_the_red ★★ ()
Ответ на: комментарий от gremlin_the_red
root@debian:~# dpkg-query -l nvidia-driver-libs
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                     Version      Architecture Description
+++-========================-============-============-==================================================
ii  nvidia-driver-libs:amd64 418.74-1     amd64        NVIDIA metapackage (OpenGL/GLX/EGL/GLES libraries)
disee ★★★ ()
Ответ на: комментарий от Deleted

Попробовал, опять ошибка что не хватает депенданси. По вашему примеру добавлял вручную нехватающих депенданси пока не получилось вот так:

root@debian:~# apt install nvidia-driver-libs:i386 nvidia-driver-libs-i386 nvidia-egl-icd:i386 libgl1-nvidia-glvnd-glx:i386 libglx-nvidia0:i386 nvidia-alternative:i386 libnvidia-glcore:i386 libegl-nvidia0:i386 libnvidia-eglcore:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  dkms g++-7 hyphen-en-us javascript-common libaccinj64-9.2 libc-ares2 libcublas9.2 libcudart9.2 libcufft9.2 libcufftw9.2 libcurand9.2 libcusolver9.2 libcusparse9.2 libjs-jquery libncurses5 libnode64 libnppc9.2 libnppial9.2
  libnppicc9.2 libnppicom9.2 libnppidei9.2 libnppif9.2 libnppig9.2 libnppim9.2 libnppist9.2 libnppisu9.2 libnppitc9.2 libnpps9.2 libnvblas9.2 libnvgraph9.2 libnvidia-cbl libnvidia-compiler libnvidia-fatbinaryloader libnvidia-glvkspirv
  libnvidia-legacy-340xx-cfg1 libnvidia-ptxjitcompiler1 libnvidia-rtcore libnvrtc9.2 libnvtoolsext1 libnvvm3 libreoffice-help-common libreoffice-help-en-us libstdc++-7-dev libthrust-dev libtinfo5 libuv1 libvdpau-dev libxatracker2
  libxnvctrl0 linux-headers-amd64 mythes-en-us node-html5shiv node-normalize.css nodejs nodejs-doc nvidia-cuda-doc nvidia-cuda-gdb nvidia-kernel-common nvidia-legacy-340xx-alternative nvidia-legacy-check nvidia-modprobe
  nvidia-opencl-common nvidia-openjdk-8-jre nvidia-persistenced nvidia-settings nvidia-support sudo x11-apps x11-session-utils xbitmaps xfonts-100dpi xfonts-75dpi xfonts-scalable xinit xserver-xorg-legacy
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  libegl-mesa0:i386 libegl1:i386 libgbm1:i386 libgpg-error-l10n libnvidia-legacy-340xx-cfg1 libopengl0:i386 libwayland-client0:i386 libwayland-server0:i386 libxcb-xfixes0:i386 nvidia-legacy-340xx-alternative uuid-runtime
Recommended packages:
  libgles-nvidia1:i386 libgles-nvidia2:i386 nvidia-vulkan-icd:i386
The following packages will be REMOVED:
  libcuda1 libcuinj64-9.2 libegl-nvidia0 libgl1-nvidia-glvnd-glx libgles-nvidia1 libgles-nvidia2 libglx-nvidia0 libnvcuvid1 libnvidia-cfg1 libnvidia-eglcore libnvidia-glcore libnvidia-ml1 nvidia-alternative nvidia-cuda-dev
  nvidia-cuda-toolkit nvidia-driver nvidia-driver-bin nvidia-driver-libs nvidia-egl-icd nvidia-kernel-dkms nvidia-kernel-support nvidia-opencl-icd nvidia-profiler nvidia-smi nvidia-vdpau-driver nvidia-visual-profiler
  nvidia-vulkan-common nvidia-vulkan-icd task-desktop task-gnome-desktop xorg xserver-xorg xserver-xorg-core xserver-xorg-input-all xserver-xorg-input-libinput xserver-xorg-input-wacom xserver-xorg-video-all xserver-xorg-video-amdgpu
  xserver-xorg-video-ati xserver-xorg-video-fbdev xserver-xorg-video-intel xserver-xorg-video-nouveau xserver-xorg-video-nvidia xserver-xorg-video-qxl xserver-xorg-video-radeon xserver-xorg-video-vesa xserver-xorg-video-vmware
The following NEW packages will be installed:
  libegl-mesa0:i386 libegl-nvidia0:i386 libegl1:i386 libgbm1:i386 libgl1-nvidia-glvnd-glx:i386 libglx-nvidia0:i386 libgpg-error-l10n libnvidia-eglcore:i386 libnvidia-glcore:i386 libnvidia-legacy-340xx-cfg1 libopengl0:i386
  libwayland-client0:i386 libwayland-server0:i386 libxcb-xfixes0:i386 nvidia-alternative:i386 nvidia-driver-libs:i386 nvidia-driver-libs-i386:i386 nvidia-egl-icd:i386 nvidia-legacy-340xx-alternative uuid-runtime
0 upgraded, 20 newly installed, 47 to remove and 0 not upgraded.
Need to get 15.4 MB of archives.
After this operation, 1,312 MB disk space will be freed.
Do you want to continue? [Y/n] ^C

Мне не понравилась секция will be REMOVED и я не стал этого делать. В чем вообще может быть причина такого поведения?

disee ★★★ ()
Ответ на: комментарий от disee

Не большой знаток невидий, возможно это действительно конфликтующие пакеты. Т.е. либо открытые дрова, либо закрытые, с соответсвующим выпиливанием открытых.

Deleted ()
Ответ на: комментарий от disee

если не изменяет память драйвер ставил из пакета с сайта, не из реп

О таких вещах надо сразу говорить. Вот он и не может его обновить, а без обновления старого не поставить либы от нового. Переустанавливай на версию из реп, потом продолжай.

gremlin_the_red ★★ ()