apt_inst.debExtractArchive produces directories instead of links. To reproduce: ar x /tmp/sudo_1.6.8p12-4ubuntu5_amd64.deb tar tvzf data.tar.gz | grep "usr/bin/sudo" hrwsr-xr-x root/root 0 2006-10-09 04:39 ./usr/bin/sudo link to ./usr/bin/sudoedit What actually happens: etch:/tmp/usr/bin# ls -al total 124 drwxr-xr-x 3 root root 4096 Aug 21 17:40 . drwxr-xr-x 5 root root 4096 Aug 21 17:40 .. -rwxr-xr-x 1 root root 110280 May 17 2006 sudo drwxr-xr-x 2 root root 4096 Aug 21 17:40 sudoedit
reassign 439023 apt thanks This seems to be a bug in apt. The apt_inst module basically just calls Deb.ExtractArchive(Extract), so the reason is very unlikely to be python-apt.
package apt severity 439023 normal thanks Hello Bill, thanks for report. Generally, it's better to use dpkg for operations around .deb files.