tdsodbc breaks upgrade from Hardy to Intrepid

Bug #304996 reported by Richard Laager
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
freetds (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

dpkg failed upgrading from Hardy to Intrepid because of the tdsodbc package. It gave the following error message:
Setting up tdsodbc (0.82-3) ...
rmdir: failed to remove `/var/lib/odbc': No such file or directory

I was able to fix this by creating that directory and then re-running "apt-get dist-upgrade", which just re-configured that package and everything was fine.

This error occurs because of this line in the postinst:
        rmdir --ignore-fail-on-non-empty /var/lib/odbc

I suggest that be changed to:
        [ -d /var/lib/odbc ] && rmdir --ignore-fail-on-non-empty /var/lib/odbc

Revision history for this message
Steve Langasek (vorlon) wrote :

Thank you for taking the time to report this bug and help to improve Ubuntu.

This is a duplicate of bug #254953, which was fixed in freetds 0.82-3ubuntu1.

Changed in freetds (Ubuntu):
status: New → Fix Released
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.