A couple of days before I installed the kernel 3.5.0-40 through the
regular Ubuntu Update process and all went fine. I did check the
/var/lib/dpkg/info/linux-image-3.5.0-40-generic.postrm file and it still
sported the 4 occurences of pwd in this instruction :

chomp($cwd = `pwd`);

When first installing the Quantal kernel backport there was no problem
and subsequent updates went fine. However the automatic update process
did install a 3.5.0 kernel recent version (far above the 40 currently
supported). I did not pay attention to the GRUB boot screen which was
still showing that the 3.5.0-39 was used by my Ubuntu 12.04 system and I
removed as usual the older(s) kernels from my /boot partition. Following
this I had to boot through th regular 3.2 kernel and I did re-install
the kernel 3.5.0-39 through the following precedure coming from an
official Ubuntu website :

1) Add the X-team ppa 
(https://launchpad.net/~ubuntu-x-swat/+archive/q-lts-backport)
sudo add-apt-repository ppa:ubuntu-x-swat/q-lts-backport
2) Update apt and install the new kernel
sudo apt-get update && sudo apt-get install linux-image-generic-lts-quantal 
linux-headers-generic-lts-quantal
3) Restart your computer to boot into the new kernel

However I was faced with the reported bug :
package linux-image-3.5.0-39-generic 3.5.0-39.60~precise1 failed to 
install/upgrade: subprocess installed post-installation script returned error 
exit status 17

Only after replacing all occurences of pwd by getcwd() within
/var/lib/dpkg/info/linux-image-3.2.0-34-generic.postinst , did I succeed
to re-install the Quantal backport of 3.5.0-39 in Precise 12.04

For information before re-installing I did the following to remove the
Quantal kernel :

1) Install ppa-purge
sudo apt-get install ppa-purge
2) Remove the ppa
sudo ppa-purge ppa:ubuntu-x-swat/q-lts-backport
3) PPA Purge will find the packages installed and offered to downgrade them.
Say yes and ppa-purge will remove the upgraded versions and reinstall the 
versions from the archive.
4) Remove the meta packages
sudo apt-get remove --purge linux-image-generic-lts-quantal 
linux-headers-generic-lts-quantal
5) Remove the kernel itself. While running the new kernel, enter the following 
command
uname -r
This returns a number, like '3.5.0-8-generic'. Use the number (3.5.0-8) to 
replace the word KERNEL
sudo apt-get remove --purge linux-image-KERNEL-generic linux-headers-KERNEL 
linux-headers-KERNEL-generic 
sudo apt-get autoremove
Eg, for '3.5.0-8'
sudo apt-get remove --purge linux-image-3.5.0-8-generic linux-headers-3.5.0-8 
linux-headers-3.5.0-8

In short the used :

chomp($cwd = `pwd`);

is working as it did before, however I am not sure weather the problem
would re-appear following a full un-install / re-install.

the solution was to use :

chomp($cwd=`getcwd()`);

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1221138

Title:
  package linux-image-3.5.0-39-generic 3.5.0-39.60~precise1 failed to
  install/upgrade: subprocess installed post-installation script
  returned error exit status 17

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1221138/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to