← Back to team overview

ubuntu-x-swat team mailing list archive

[Bug 685017] Re: Jockey should warn on insufficient disk space in LiveCD environment, else get error "package nvidia-current 260.19.21-0ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1"

 

Hrm, unfortunately even using all the workarounds I still couldn't get
fglrx up.  Here's what I tried:

[Workaround]
1.  Download an ISO (I tested against the alpha-1 iso image)
2.  Generate a USB drive using usb-creator.  Do not reserve all the remaining space.  Leave some amount for system updates (I tested on a 4G drive, reserving 1G to persistent storage and the remaining ~2G for system updates, but other quantities may work as well).  This works around bug #562312.
3.  Boot the USB drive, select "Try Ubuntu" (the Live CD environment)
4.  Delete the broken /vmlinuz symlink and create /vmlinuz as a new symlink to /cdrom/casper/vmlinuz /vmlinuz.  This works around bug #557023.
5.  Do an update (via running 'Check' in Update Manager, or just 'sudo apt-get update' on the command line).  Otherwise jockey will fail with error about not finding expected versions of Qt or other packages.
6.  Now run 'Additional Hardware' (aka jockey), and click 'Activate'.  Some stuff is downloaded and installed... time passes... then it says it is successfully installed.
7.  Reboot (I had to manually select boot from USB in BIOS for some reason; didn't have to do that before.)

Everything seemed fine up through this point.  The boot graphics were
different than previously, making me think that fglrx had loaded.
However no good... checking dmesg shows that radeon was selected, no
fglrx at all.  So I think there's more at play here, but my guess is
that it has to do with the way the filesystems are set up more than it
being an issue with -nvidia or -fglrx particularly.  So I'll leave the
-nvidia task closed, but if anyone identifies something that definitely
needs done on either driver, please feel free to reopen.


** Description changed:

  [Problem]
  This is a common issue encountered by users trying to install -nvidia on systems with insufficient space to install the driver.  This can happen for instance if the user is booting from a usb disk.
  
  It is further noticed that in many cases the system may appear to have
  enough space, but it still fails on an out of space issue.  It is
  suspected that either more space is used than expected, or the amount of
  available space is overreported.
  
  Jockey should check for available space on installation, and should
  include a sizable margin (like 2.5x space asked).  If the user has less
  than that amount of space, it should give a dialog warning them that
  they won't have enough space.
  
  Jockey also needs to be aware that in a LiveCD environment, there may be
  ample space available in the reserved persistent space (the casper-rw
  file on the usb key), but it needs to have space on the underlying
  filesystem too, for creating initrd and storing the kernel image and so
  on.
  
  [Steps to Reproduce]
  1. Download an ISO
  2. Generate a USB install key using usb-creator.  Select the 'Stored in reserved extra space' option and set it to the maximum available space.
  3.  Using df note the remaining free space (496k in my case)
  4.  Boot the usb device on a system with NVIDIA or AMD graphics
  5.  Go to the applications menu.  Select 'Additional Drivers'.  Install fglrx or nvidia (or any other proprietary driver).
  6.  Installation of the driver fails.  (I see "SystemError: installArchives() failed" but might error differently depending on how much space was available).
  7.  Shut down system and re-examine usb drive.  The persistence file has not changed size, but other things on the USB drive have increased and used up the remaining space.  (I see initrd.lz.new of size 496k)
  
- [Workaround]
- 1.  Download an ISO (I tested against the alpha-1 iso image)
- 2.  Generate a USB drive using usb-creator.  Do not reserve all the remaining space.  Leave some amount for system updates (I tested on a 4G drive, reserving 1G to persistent storage and the remaining ~2G for system updates, but other quantities may work as well).  This works around bug #562312.
- 3.  Boot the USB drive, select "Try Ubuntu" (the Live CD environment)
- 4.  Delete the broken /vmlinuz symlink and create /vmlinuz as a new symlink to /cdrom/casper/vmlinuz /vmlinuz.  This works around bug #557023.
- 5.  Do an update (via running 'Check' in Update Manager, or just 'sudo apt-get update' on the command line).  Otherwise jockey will fail with error about not finding expected versions of Qt or other packages.
- 6.  Now run 'Additional Hardware' (aka jockey), and click 'Activate'.  Some stuff is downloaded and installed... time passes... then it says it is successfully installed.
- 7.  Reboot.  (For some reason I had to specifically select USB in BIOS for booting, even that was already listed as first thing to try.)
- 8.  Select 'Try Ubuntu' again; it should load up fine now, with fglrx in the live cd environment, with compiz and unity enabled.
  
  [Original Report]
  Booted from usb disk
  
  Got a notice saying that unity was not available because I didn't have
  3D.
  
  Went to System->Administration->Hardware drivers, selected to install
  nvidia drivers.
  
  Apport detected crash, driver installation failed.
  
  ProblemType: Package
  DistroRelease: Ubuntu 11.04
  Package: nvidia-current 260.19.21-0ubuntu1
  ProcVersionSignature: Ubuntu 2.6.37-7.19-generic 2.6.37-rc3
  Uname: Linux 2.6.37-7-generic i686
  Architecture: i386
  Date: Fri Dec  3 23:57:10 2010
  DkmsStatus:
  
  ErrorMessage: subprocess installed post-installation script returned error exit status 1
  GdmLog1: Error: command ['cat', '/var/log/gdm/:0.log.1'] failed with exit code 1: cat: /var/log/gdm/:0.log.1: No such file or directory
  GdmLog2: Error: command ['cat', '/var/log/gdm/:0.log.2'] failed with exit code 1: cat: /var/log/gdm/:0.log.2: No such file or directory
  LiveMediaBuild: Ubuntu 11.04 "Natty Narwhal" - Alpha i386 (20101203)
  MachineType: System manufacturer System Product Name
  ProcKernelCmdLine: BOOT_IMAGE=/casper/vmlinuz noprompt cdrom-detect/try-usb=true persistent file=/cdrom/preseed/hostname.seed boot=casper initrd=/casper/initrd.lz quiet splash -- maybe-ubiquity
  SourcePackage: nvidia-graphics-drivers
  Title: package nvidia-current 260.19.21-0ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
  dmi.bios.date: 11/23/2007
  dmi.bios.vendor: American Megatrends Inc.
  dmi.bios.version: 1226
  dmi.board.asset.tag: To Be Filled By O.E.M.
  dmi.board.name: P5B-Deluxe
  dmi.board.vendor: ASUSTeK Computer INC.
  dmi.board.version: Rev 1.xx
  dmi.chassis.asset.tag: Asset-1234567890
  dmi.chassis.type: 3
  dmi.chassis.vendor: Chassis Manufacture
  dmi.chassis.version: Chassis Version
  dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr1226:bd11/23/2007:svnSystemmanufacturer:pnSystemProductName:pvrSystemVersion:rvnASUSTeKComputerINC.:rnP5B-Deluxe:rvrRev1.xx:cvnChassisManufacture:ct3:cvrChassisVersion:
  dmi.product.name: System Product Name
  dmi.product.version: System Version
  dmi.sys.vendor: System manufacturer
  glxinfo: Error: [Errno 2] No such file or directory
  system:
   distro:             Ubuntu
   codename:           natty
   architecture:       i686
   kernel:             2.6.37-7-generic

-- 
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to nvidia-graphics-drivers in ubuntu.
https://bugs.launchpad.net/bugs/685017

Title:
  Jockey should warn on insufficient disk space in LiveCD environment, else get error "package nvidia-current 260.19.21-0ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1"



References