package tdsodbc 0.82-3 failed to install/upgrade, tries to delete non-existing directory /var/lib/odbc
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
freetds (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
This package failed to install on a recent Intrepid dist-upgrade. The failure is caused by the post-installation script trying to delete a non-existing directory (/var/lib/odbc) which returns an error:
Setting up tdsodbc (0.82-3) ...
rmdir: failed to remove `/var/lib/odbc': No such file or directory
dpkg: error processing tdsodbc (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
tdsodbc
E: Sub-process /usr/bin/dpkg returned an error code (1)
Manually creating this directory (only for it to be removed again in the install process...) followed by apt-get -f install allows the install to complete without error. The post-installation script should be updated to either check for existence of this directory or to use a removal method which ignores non-existing files/directories (rm -rf is a good candidate...)
apt-cache policy tdsodbc
tdsodbc:
Installed: 0.82-3
Candidate: 0.82-3
Version table:
*** 0.82-3 0
400 http://
400 http://
100 /var/lib/
ProblemType: Package
Architecture: i386
Date: Sat Aug 2 21:32:54 2008
DistroRelease: Ubuntu 8.10
ErrorMessage: subprocess post-installation script returned error exit status 1
NonfreeKernelMo
Package: tdsodbc 0.82-3
PackageArchitec
SourcePackage: freetds
Title: package tdsodbc 0.82-3 failed to install/upgrade: subprocess post-installation script returned error exit status 1
Uname: Linux 2.6.26-
I was hit by precisely the same bug. I'll try your fix now!