package tdsodbc 0.82-3 failed to install/upgrade, tries to delete non-existing directory /var/lib/odbc

Bug #254281 reported by knarf
16
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://se.archive.ubuntu.com intrepid/main Packages
        400 http://archive.ubuntu.com intrepid/main Packages
        100 /var/lib/dpkg/status

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
NonfreeKernelModules: ath_hal
Package: tdsodbc 0.82-3
PackageArchitecture: i386
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-t23-200807141556 i686

Revision history for this message
knarf (launchpad-ubuntu-f) wrote :
Revision history for this message
John Carlyle-Clarke (jpcc) wrote :

I was hit by precisely the same bug. I'll try your fix now!

Revision history for this message
John Carlyle-Clarke (jpcc) wrote :

The same fix worked for me.

Revision history for this message
Alberto (apedraza) wrote :

This fixed it for me.

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.