Bug#869817: nvidia-legacy-check_375.66-2~deb9u1 fails: + RET=20 Unsupported command "04:00.0"

Olivier Crumeyrolle olivier.crumeyrolle at univ-lehavre.fr
Wed Jul 26 17:52:57 UTC 2017


Package: nvidia-legacy-check
Version: 375.66-2~deb9u1
Severity: normal

Dear Maintainer,

Apparently a scripting issue prevents installation of package 
nvidia-legacy-check_375.66-2~deb9u1 when two graphics cards are present.

This hypothesis comes from the output of 
 
DEBUG_NVIDIA_LEGACY_CHECK=yes dpkg -i nvidia-legacy-check_375.66-2~deb9u1_amd64.deb

which shows  

+ RET=20 Unsupported command "04:00.0" (full line was "04:00.0 VGA compatible controller [0300]: NVIDIA Corporation G84GL [Quadro FX 570] [10de:040e] (rev a1)") received from confmodule.

as if the script tried to "execute" the second graphic card. 
Full transcript below.
Please note that this bug created significant trouble while 
dist-upgrading from jessie to stretch, as dpkg stops abruptly.

Regards,
Olivier


-------output of DEBUG_NVIDIA_LEGACY_CHECK=yes dpkg -i nvidia-legacy-check_375.66-2~deb9u1_amd64.deb -------

(Reading database ... 179814 files and directories currently installed.)
Preparing to unpack nvidia-legacy-check_375.66-2~deb9u1_amd64.deb ...
+ [ install = install ]
+ check_for_unsupported_gpus
+ db_get nvidia-driver/check-for-unsupported-gpu
+ _db_cmd GET nvidia-driver/check-for-unsupported-gpu
+ _db_internal_IFS= 

+ IFS= 
+ printf %s\n GET nvidia-driver/check-for-unsupported-gpu
+ IFS= 

+ IFS=
 read -r _db_internal_line
+ RET=true
+ return 0
+ test true = true
+ msgpid=14644
+ + sleeppid=14646
find_unsupported_gpus
+ trap kill $sleeppid 2>/dev/null || true TERM
+ + lspci+  --versiontrap
 :sleep EXIT 30

+ wait 14646
+ lspci -mn
+ awk { gsub("\"",""); if ($2 == "0300") { print $1 " " $3$4 } }
+ + readtr dev [:lower:] id [:upper:]

+ [ 10DE0191 = 10DE040E ]
+ [ 10DE0193 = 10DE040E ]
+ [ 10DE0194 = 10DE040E ]
+ [ 10DE0197 = 10DE040E ]
+ [ 10DE019D = 10DE040E ]
+ [ 10DE019E = 10DE040E ]
+ [ 10DE0400 = 10DE040E ]
+ [ 10DE0401 = 10DE040E ]
+ [ 10DE0402 = 10DE040E ]
+ [ 10DE0403 = 10DE040E ]
+ [ 10DE0404 = 10DE040E ]
+ [ 10DE0405 = 10DE040E ]
+ [ 10DE0406 = 10DE040E ]
+ [ 10DE0407 = 10DE040E ]
+ [ 10DE0408 = 10DE040E ]
+ [ 10DE0409 = 10DE040E ]
+ [ 10DE040A = 10DE040E ]
+ [ 10DE040B = 10DE040E ]
+ [ 10DE040C = 10DE040E ]
+ [ 10DE040D = 10DE040E ]
+ [ 10DE040E = 10DE040E ]
+ echo 03:00.0
+ break
+ read dev id
+ [ 10DE0191 = 10DE040E ]
+ [ 10DE0193 = 10DE040E ]
+ [ 10DE0194 = 10DE040E ]
+ [ 10DE0197 = 10DE040E ]
+ [ 10DE019D = 10DE040E ]
+ [ 10DE019E = 10DE040E ]
+ [ 10DE0400 = 10DE040E ]
+ [ 10DE0401 = 10DE040E ]
+ [ 10DE0402 = 10DE040E ]
+ [ 10DE0403 = 10DE040E ]
+ [ 10DE0404 = 10DE040E ]
+ [ 10DE0405 = 10DE040E ]
+ [ 10DE0406 = 10DE040E ]
+ [ 10DE0407 = 10DE040E ]
+ [ 10DE0408 = 10DE040E ]
+ [ 10DE0409 = 10DE040E ]
+ [ 10DE040A = 10DE040E ]
+ [ 10DE040B = 10DE040E ]
+ [ 10DE040C = 10DE040E ]
+ [ 10DE040D = 10DE040E ]
+ [ 10DE040E = 10DE040E ]
+ echo 04:00.0
+ break
+ read dev id
+ UNSUPPORTED_DEVICES=03:00.0
04:00.0
+ lspci -nn -s 03:00.0
+ lspci -nn -s 04:00.0
+ UNSUPPORTED=03:00.0 VGA compatible controller [0300]: NVIDIA Corporation G84GL [Quadro FX 570] [10de:040e] (rev a1)
04:00.0 VGA compatible controller [0300]: NVIDIA Corporation G84GL [Quadro FX 570] [10de:040e] (rev a1)
+ kill 14644
+ test -n 03:00.0
04:00.0
+ db_subst nvidia-driver/install-even-if-unsupported-gpu-exists vendor NVIDIA
+ _db_cmd SUBST nvidia-driver/install-even-if-unsupported-gpu-exists vendor NVIDIA+ 
:
+ _db_internal_IFS= 

+ IFS= 
+ + killprintf 14646 %s\n
 SUBST nvidia-driver/install-even-if-unsupported-gpu-exists vendor NVIDIA
+ IFS= 

+ IFS=
 read -r _db_internal_line
+ RET=0
+ return 0
+ db_subst nvidia-driver/install-even-if-unsupported-gpu-exists driver nvidia-driver
+ _db_cmd SUBST nvidia-driver/install-even-if-unsupported-gpu-exists driver nvidia-driver
+ _db_internal_IFS= 

+ IFS= 
+ printf %s\n SUBST nvidia-driver/install-even-if-unsupported-gpu-exists driver nvidia-driver
+ IFS= 

+ IFS=
 read -r _db_internal_line
+ RET=0
+ return 0
+ db_subst nvidia-driver/install-even-if-unsupported-gpu-exists legacy_driver nvidia-legacy-340xx-driver
+ _db_cmd SUBST nvidia-driver/install-even-if-unsupported-gpu-exists legacy_driver nvidia-legacy-340xx-driver
+ _db_internal_IFS= 

+ IFS= 
+ printf %s\n SUBST nvidia-driver/install-even-if-unsupported-gpu-exists legacy_driver nvidia-legacy-340xx-driver
+ IFS= 

+ IFS=
 read -r _db_internal_line
+ RET=0
+ return 0
+ db_subst nvidia-driver/install-even-if-unsupported-gpu-exists free_name Nouveau
+ _db_cmd SUBST nvidia-driver/install-even-if-unsupported-gpu-exists free_name Nouveau
+ _db_internal_IFS= 

+ IFS= 
+ printf %s\n SUBST nvidia-driver/install-even-if-unsupported-gpu-exists free_name Nouveau
+ IFS= 

+ IFS=
 read -r _db_internal_line
+ RET=0
+ return 0
+ db_subst nvidia-driver/install-even-if-unsupported-gpu-exists free_driver xserver-xorg-video-nouveau
+ _db_cmd SUBST nvidia-driver/install-even-if-unsupported-gpu-exists free_driver xserver-xorg-video-nouveau
+ _db_internal_IFS= 

+ IFS= 
+ printf %s\n SUBST nvidia-driver/install-even-if-unsupported-gpu-exists free_driver xserver-xorg-video-nouveau
+ IFS= 

+ IFS=
 read -r _db_internal_line
+ RET=0
+ return 0
+ db_subst nvidia-driver/install-even-if-unsupported-gpu-exists unsupported-device 03:00.0 VGA compatible controller [0300]: NVIDIA Corporation G84GL [Quadro FX 570] [10de:040e] (rev a1)
04:00.0 VGA compatible controller [0300]: NVIDIA Corporation G84GL [Quadro FX 570] [10de:040e] (rev a1)
+ _db_cmd SUBST nvidia-driver/install-even-if-unsupported-gpu-exists unsupported-device 03:00.0 VGA compatible controller [0300]: NVIDIA Corporation G84GL [Quadro FX 570] [10de:040e] (rev a1)
04:00.0 VGA compatible controller [0300]: NVIDIA Corporation G84GL [Quadro FX 570] [10de:040e] (rev a1)
+ _db_internal_IFS= 

+ IFS= 
+ printf %s\n SUBST nvidia-driver/install-even-if-unsupported-gpu-exists unsupported-device 03:00.0 VGA compatible controller [0300]: NVIDIA Corporation G84GL [Quadro FX 570] [10de:040e] (rev a1)
04:00.0 VGA compatible controller [0300]: NVIDIA Corporation G84GL [Quadro FX 570] [10de:040e] (rev a1)
+ IFS= 

+ IFS=
 read -r _db_internal_line
+ RET=0
+ return 0
+ db_get nvidia-driver/supported-in-legacy-driver-name
+ _db_cmd GET nvidia-driver/supported-in-legacy-driver-name
+ _db_internal_IFS= 

+ IFS= 
+ printf %s\n GET nvidia-driver/supported-in-legacy-driver-name
+ IFS= 

+ IFS=
 read -r _db_internal_line
+ RET=20 Unsupported command "04:00.0" (full line was "04:00.0 VGA compatible controller [0300]: NVIDIA Corporation G84GL [Quadro FX 570] [10de:040e] (rev a1)") received from confmodule.
+ return 20
dpkg: error processing archive nvidia-legacy-check_375.66-2~deb9u1_amd64.deb (--install):
 subprocess new pre-installation script returned error exit status 128
Errors were encountered while processing:
 nvidia-legacy-check_375.66-2~deb9u1_amd64.deb


------------------------------------------------------------------------------------------------------------------------------


-- System Information:
Debian Release: 9.1
  APT prefers proposed-updates
  APT policy: (500, 'proposed-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages nvidia-legacy-check depends on:
ii  debconf [debconf-2.0]     1.5.61
ii  nvidia-installer-cleanup  20151021+4
ii  pciutils                  1:3.5.2-1

nvidia-legacy-check recommends no packages.

nvidia-legacy-check suggests no packages.



More information about the pkg-nvidia-devel mailing list