Throws exception while trying to install nvidia-glx-legacy (etc) for GeForce2 Ultra on hardy

Bug #398189 reported by Martyn Thomas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Envy
New
Undecided
Unassigned

Bug Description

I have a GeForce2 Ultra on Hardy.
When running EnvyNG I get (full output at end)

Traceback (most recent call last):
....
  File "/usr/lib/python2.5/site-packages/Envy/objects.py", line 84, in nvidiainstallg
    task.nvidiaInstall()
  File "/usr/lib/python2.5/site-packages/Envy/classes.py", line 1076, in nvidiaInstall
    check.checkntry(packages)
  File "/usr/lib/python2.5/site-packages/Envy/classes.py", line 306, in checkntry
    raise Exception(error)
Exception: ('\nEnvyNG ERROR: The following packages cannot be installed:',)

I did a bit of digging and can see that checkntry is using dpkg to work out what's what. I ran this manually in a python shell and got
>>> p1 = Popen(['dpkg', '--get-selections'], stdout=PIPE)
>>> p = p1.communicate()[0]
>>> c = p.split('\n')
>>> for line in c:
... for pkg in packages:
... if line.find(pkg) != -1:
... print line
...
nvidia-glx-legacy purge
nvidia-glx-legacy-dev install
nvidia-glx-legacy-dev install
nvidia-legacy-kernel-source install
>>> print notinstalled
['nvidia-glx-legacy']

Running the same from bash I got
$ dpkg --get-selections | grep nvidia
nvidia-glx-legacy purge
nvidia-glx-legacy-dev install
nvidia-kernel-common install
nvidia-legacy-kernel-source install

I used synaptic to re-install nvidia-glx-legacy and it changed to
:~$ dpkg --get-selections | grep nvidia
nvidia-glx-legacy install
nvidia-glx-legacy-dev install
nvidia-kernel-common install
nvidia-legacy-kernel-source install

I then ran EnvyNG again and this time it worked.

Here's the full EnvyNG output :-

python pulse.py nvidia
root@WebuntuServer:/usr/share/envy# python pulse.py nvidia
/usr/lib/python2.5/site-packages/apt/__init__.py:18: FutureWarning: apt API not stable yet
  warnings.warn("apt API not stable yet", FutureWarning)
EnvyNG - Version 1.1.1
Ubuntu Hardy 32bit
Your graphic card has been detected as a GeForce2 Ultra
Your graphic card is supported by the legacy Driver
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libisc32
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
EnvyNG: The following packages will be removed:
nvidia-legacy-kernel-source

EnvyNG: attempting to remove the packages
EnvyNG: Updating the packages list
Hit http://security.ubuntu.com hardy-security Release.gpg
Ign http://security.ubuntu.com hardy-security/main Translation-en_GB
Hit http://gb.archive.ubuntu.com hardy Release.gpg
Hit http://gb.archive.ubuntu.com hardy/main Translation-en_GB
Ign http://security.ubuntu.com hardy-security/restricted Translation-en_GB
Ign http://security.ubuntu.com hardy-security/universe Translation-en_GB
Ign http://security.ubuntu.com hardy-security/multiverse Translation-en_GB
Hit http://security.ubuntu.com hardy-security Release
Hit http://gb.archive.ubuntu.com hardy/restricted Translation-en_GB
Hit http://gb.archive.ubuntu.com hardy/universe Translation-en_GB
Hit http://gb.archive.ubuntu.com hardy/multiverse Translation-en_GB
Hit http://gb.archive.ubuntu.com hardy-updates Release.gpg
Ign http://gb.archive.ubuntu.com hardy-updates/main Translation-en_GB
Ign http://gb.archive.ubuntu.com hardy-updates/restricted Translation-en_GB
Hit http://gb.archive.ubuntu.com hardy Release
Hit http://gb.archive.ubuntu.com hardy-updates Release
Hit http://security.ubuntu.com hardy-security/main Packages
Hit http://security.ubuntu.com hardy-security/restricted Packages
Hit http://security.ubuntu.com hardy-security/main Sources
Hit http://security.ubuntu.com hardy-security/restricted Sources
Hit http://security.ubuntu.com hardy-security/universe Packages
Hit http://gb.archive.ubuntu.com hardy/main Packages
Hit http://security.ubuntu.com hardy-security/universe Sources
Hit http://security.ubuntu.com hardy-security/multiverse Packages
Hit http://security.ubuntu.com hardy-security/multiverse Sources
Hit http://gb.archive.ubuntu.com hardy/restricted Packages
Hit http://gb.archive.ubuntu.com hardy/main Sources
Hit http://gb.archive.ubuntu.com hardy/restricted Sources
Hit http://gb.archive.ubuntu.com hardy/universe Packages
Hit http://gb.archive.ubuntu.com hardy/universe Sources
Hit http://gb.archive.ubuntu.com hardy/multiverse Packages
Hit http://gb.archive.ubuntu.com hardy/multiverse Sources
Hit http://gb.archive.ubuntu.com hardy-updates/main Packages
Hit http://gb.archive.ubuntu.com hardy-updates/restricted Packages
Hit http://gb.archive.ubuntu.com hardy-updates/main Sources
Hit http://gb.archive.ubuntu.com hardy-updates/restricted Sources
Reading package lists... Done
EnvyNG: Ubuntu stock kernel detected (2.6.24-24-386)

OK: All the packages are installed

OK: All the packages are installed
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  debhelper intltool-debian po-debconf gettext html2text libisc32 dpatch
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
EnvyNG: The following packages are not installed:
nvidia-legacy-kernel-source
nvidia-glx-legacy

EnvyNG: attempting to install the packages
Reading package lists... Done
Building dependency tree
Reading state information... Done
nvidia-glx-legacy is already the newest version.
The following packages were automatically installed and are no longer required:
  libisc32
Use 'apt-get autoremove' to remove them.
Recommended packages:
  devscripts kernel-package nvidia-glx-legacy
The following NEW packages will be installed
  nvidia-legacy-kernel-source
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/1387kB of archives.
After this operation, 1475kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  nvidia-legacy-kernel-source
Authentication warning overridden.
Selecting previously deselected package nvidia-legacy-kernel-source.
(Reading database ... 199950 files and directories currently installed.)
Unpacking nvidia-legacy-kernel-source (from .../nvidia-legacy-kernel-source_71.86.04+2.6.24.17-24.1_i386.deb) ...
Setting up nvidia-legacy-kernel-source (71.86.04+2.6.24.17-24.1) ...
Traceback (most recent call last):
  File "pulse.py", line 75, in <module>
    autoChoice(sys.argv[1])
  File "pulse.py", line 15, in autoChoice
    objects.nvidiainstallg(data1)
  File "/usr/lib/python2.5/site-packages/Envy/objects.py", line 84, in nvidiainstallg
    task.nvidiaInstall()
  File "/usr/lib/python2.5/site-packages/Envy/classes.py", line 1076, in nvidiaInstall
    check.checkntry(packages)
  File "/usr/lib/python2.5/site-packages/Envy/classes.py", line 306, in checkntry
    raise Exception(error)
Exception: ('\nEnvyNG ERROR: The following packages cannot be installed:',)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.