Bug#762547: oss-compat: Upgrade to compat_2+deb7u1 fails during configure
Hi, On Tue, 30 Sep 2014 00:18:42 +0200, SZABO Zsolt sz...@eik.bme.hu wrote: I confirm this bug, this patch may solve the situation: Thanks, the bug was already fixed in version 2+deb7u2. Regards, Stephen signature.asc Description: PGP signature
Bug#762547: oss-compat: Upgrade to compat_2+deb7u1 fails during configure
Package: oss-compat Version: 2+deb7u1 Followup-For: Bug #762547 Dear Maintainer, I confirm this bug, this patch may solve the situation: --- /tmp/oss-compat.postinst2014-09-23 05:23:38.0 +0200 +++ /var/lib/dpkg/info/oss-compat.postinst 2014-09-3000:12:16.0 +0200 @@ -33,7 +33,7 @@ # Cleanup stable configuration link [ -L ${oldconffile} ] rm -f ${oldconffile} # Wheezy configuration file (using install directives) -[ -f ${curconffile} ] [ $(md5sum ${curconffile} | cut -d\ -f1) = 88222606b0a3ba8b0825c5000c754e6f ] cp /lib/oss-compat/linux ${conffile} +[ -f ${curconffile} ] [ $(md5sum ${curconffile} | cut -d\ -f1) = 88222606b0a3ba8b0825c5000c754e6f ] cp /lib/oss-compat/linux ${curconffile} if lsmod | grep -q ^snd ; then modprobe snd || true or simply: sed -i -r 's/\$\{(conffile\})/\$\{cur\1/g' /var/lib/dpkg/info/oss-compat.postinst sz@zs -- System Information: Debian Release: 7.6 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 'stable') Architecture: i386 (i686) Kernel: Linux 3.2.0-4-686-pae (SMP w/8 CPU cores) Locale: LANG=hu_HU, LC_CTYPE=hu_HU (charmap=ISO-8859-2) Shell: /bin/sh linked to /bin/bash Versions of packages oss-compat depends on: ii kmod 9-3 oss-compat recommends no packages. oss-compat suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#762547: oss-compat: Upgrade to compat_2+deb7u1 fails during configure
Package: oss-compat Version: 2+deb7u1 Severity: serious Justification: Policy 6.1 Dear Maintainer, I just upgraded my machine and that included oss-compat. During the dpkg configuration phase it failed. Here's the output from the session: (Reading database ... 271246 files and directories currently installed.) Preparing to replace libsnmp-base 5.4.3~dfsg-2.8 (using .../libsnmp-base_5.4.3~dfsg-2.8+deb7u1_all.deb) ... Unpacking replacement libsnmp-base ... Preparing to replace libsnmp-dev 5.4.3~dfsg-2.8 (using .../libsnmp-dev_5.4.3~dfsg-2.8+deb7u1_amd64.deb) ... Unpacking replacement libsnmp-dev ... Preparing to replace libsnmp-perl 5.4.3~dfsg-2.8 (using .../libsnmp-perl_5.4.3~dfsg-2.8+deb7u1_amd64.deb) ... Unpacking replacement libsnmp-perl ... Preparing to replace libsnmp15 5.4.3~dfsg-2.8 (using .../libsnmp15_5.4.3~dfsg-2.8+deb7u1_amd64.deb) ... Unpacking replacement libsnmp15 ... Preparing to replace snmp 5.4.3~dfsg-2.8 (using .../snmp_5.4.3~dfsg-2.8+deb7u1_amd64.deb) ... Unpacking replacement snmp ... Preparing to replace oss-compat 2 (using .../oss-compat_2+deb7u1_amd64.deb) ... Unpacking replacement oss-compat ... Processing triggers for man-db ... Setting up libsnmp-base (5.4.3~dfsg-2.8+deb7u1) ... Setting up libsnmp15 (5.4.3~dfsg-2.8+deb7u1) ... Setting up libsnmp-perl (5.4.3~dfsg-2.8+deb7u1) ... Setting up libsnmp-dev (5.4.3~dfsg-2.8+deb7u1) ... Setting up snmp (5.4.3~dfsg-2.8+deb7u1) ... Setting up oss-compat (2+deb7u1) ... cp: missing destination file operand after `/lib/oss-compat/linux' Try `cp --help' for more information. dpkg: error processing oss-compat (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: oss-compat E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install. Trying to recover: Setting up oss-compat (2+deb7u1) ... cp: missing destination file operand after `/lib/oss-compat/linux' Try `cp --help' for more information. dpkg: error processing oss-compat (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: oss-compat My guess is that the problem is in: /var/lib/dpkg/info/oss-compat.postinst On line 36: [ -f ${curconffile} ] [ $(md5sum ${curconffile} | cut -d\ -f1) = 88222606b0a3ba8b0825c5000c754e6f ] cp /lib/oss-compat/linux ${conffile} ${conffile} is not mentioned in any other places in that script, so if it's not being set somewhere else that would be the reason for the cp command to fail. I have not yet tried to fix the issue but I suspect that a purge/re-install would to the trick.. -- System Information: Debian Release: 7.6 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores) Locale: LANG=sv_SE.UTF-8, LC_CTYPE=sv_SE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages oss-compat depends on: ii kmod 9-3 oss-compat recommends no packages. oss-compat suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#762547: oss-compat: Upgrade to compat_2+deb7u1 fails during configure
Same error here, purge and reinstall fixed. apt-get update apt-get -u dist-upgrade Hit ftp://ftp.fi.debian.org wheezy Release.gpg Get:1 http://dl.google.com stable Release.gpg [198 B] ... ... ... ... Ign http://download.virtualbox.org wheezy/contrib Translation-en Ign http://download.virtualbox.org wheezy/contrib Translation-fi Fetched 2 738 B in 6s (442 B/s) Reading package lists... Done Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: apt apt-doc apt-utils libapt-inst1.5 libapt-pkg4.12 libsnmp-base libsnmp15 oss-compat 8 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/6 250 kB of archives. After this operation, 105 kB disk space will be freed. Do you want to continue [Y/n]? Retrieving bug reports... 0% Retrieving bug reports... Done Parsing Found/Fixed information... Done serious bugs of oss-compat (2 - 2+deb7u1) tagged as pending a fix #762547 - oss-compat: Upgrade to compat_2+deb7u1 fails during configure Summary: oss-compat(1 bug) Are you sure you want to install/upgrade the above packages? [Y/n/?/...] Reading changelogs... (Reading database ... 24 files and directories currently installed.) Preparing to replace libapt-pkg4.12:i386 0.9.7.9+deb7u4 (using .../libapt-pkg4.12_0.9.7.9+deb7u5_i386.deb) ... Unpacking replacement libapt-pkg4.12:i386 ... Setting up libapt-pkg4.12:i386 (0.9.7.9+deb7u5) ... (Reading database ... 24 files and directories currently installed.) Preparing to replace apt 0.9.7.9+deb7u4 (using .../apt_0.9.7.9+deb7u5_i386.deb) ... Unpacking replacement apt ... Processing triggers for man-db ... Setting up apt (0.9.7.9+deb7u5) ... gpg: key B98321F9: Squeeze Stable Release Key debian-rele...@lists.debian.org not changed gpg: key 473041FA: Debian Archive Automatic Signing Key (6.0/squeeze) ftpmas...@debian.org not changed gpg: key 65FFB764: Wheezy Stable Release Key debian-rele...@lists.debian.org not changed gpg: key 46925553: Debian Archive Automatic Signing Key (7.0/wheezy) ftpmas...@debian.org not changed gpg: Total number processed: 4 gpg: unchanged: 4 (Reading database ... 24 files and directories currently installed.) Preparing to replace libapt-inst1.5:i386 0.9.7.9+deb7u4 (using .../libapt-inst1.5_0.9.7.9+deb7u5_i386.deb) ... Unpacking replacement libapt-inst1.5:i386 ... Preparing to replace apt-utils 0.9.7.9+deb7u4 (using .../apt-utils_0.9.7.9+deb7u5_i386.deb) ... Unpacking replacement apt-utils ... Preparing to replace apt-doc 0.9.7.9+deb7u4 (using .../apt-doc_0.9.7.9+deb7u5_all.deb) ... Unpacking replacement apt-doc ... Preparing to replace libsnmp-base 5.4.3~dfsg-2.8 (using .../libsnmp-base_5.4.3~dfsg-2.8+deb7u1_all.deb) ... Unpacking replacement libsnmp-base ... Preparing to replace libsnmp15 5.4.3~dfsg-2.8 (using .../libsnmp15_5.4.3~dfsg-2.8+deb7u1_i386.deb) ... Unpacking replacement libsnmp15 ... Preparing to replace oss-compat 2 (using .../oss-compat_2+deb7u1_i386.deb) ... Unpacking replacement oss-compat ... Processing triggers for man-db ... Setting up libapt-inst1.5:i386 (0.9.7.9+deb7u5) ... Setting up apt-utils (0.9.7.9+deb7u5) ... Setting up apt-doc (0.9.7.9+deb7u5) ... Setting up libsnmp-base (5.4.3~dfsg-2.8+deb7u1) ... Setting up libsnmp15 (5.4.3~dfsg-2.8+deb7u1) ... Setting up oss-compat (2+deb7u1) ... cp: missing destination file operand after `/lib/oss-compat/linux' Try `cp --help' for more information. dpkg: error processing oss-compat (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: oss-compat E: Sub-process /usr/bin/dpkg returned an error code (1) root@abcdef:~# apt-get update apt-get -u dist-upgrade Hit http://security.debian.org wheezy/updates Release.gpg Hit ftp://ftp.fi.debian.org wheezy Release.gpg ... ... ... ... Ign http://download.virtualbox.org wheezy/contrib Translation-en Ign http://download.virtualbox.org wheezy/contrib Translation-fi Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue [Y/n]? Setting up oss-compat (2+deb7u1) ... cp: missing destination file operand after `/lib/oss-compat/linux' Try `cp --help' for more information. dpkg: error processing oss-compat (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: oss-compat E: Sub-process /usr/bin/dpkg returned an error code (1) root@abcdef:~# root@abcdef:~# apt-get remove oss-compat --purge Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: oss-compat* 0 upgraded, 0 newly installed, 1 to remove and 0 not
Bug#762547: oss-compat: Upgrade to compat_2+deb7u1 fails during configure
Awesome. That worked for me too! It seems like left overs were messing with the upgrade. Thanks. :) On Tue, Sep 23, 2014 at 10:01:17PM +0300, Juhani Karlsson wrote: Same error here, purge and reinstall fixed. apt-get update apt-get -u dist-upgrade Hit ftp://ftp.fi.debian.org wheezy Release.gpg Get:1 http://dl.google.com stable Release.gpg [198 B] ... ... ... ... Ign http://download.virtualbox.org wheezy/contrib Translation-en Ign http://download.virtualbox.org wheezy/contrib Translation-fi Fetched 2 738 B in 6s (442 B/s) Reading package lists... Done Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: apt apt-doc apt-utils libapt-inst1.5 libapt-pkg4.12 libsnmp-base libsnmp15 oss-compat 8 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/6 250 kB of archives. After this operation, 105 kB disk space will be freed. Do you want to continue [Y/n]? Retrieving bug reports... 0% Retrieving bug reports... Done Parsing Found/Fixed information... Done serious bugs of oss-compat (2 - 2+deb7u1) tagged as pending a fix #762547 - oss-compat: Upgrade to compat_2+deb7u1 fails during configure Summary: oss-compat(1 bug) Are you sure you want to install/upgrade the above packages? [Y/n/?/...] Reading changelogs... (Reading database ... 24 files and directories currently installed.) Preparing to replace libapt-pkg4.12:i386 0.9.7.9+deb7u4 (using .../libapt-pkg4.12_0.9.7.9+deb7u5_i386.deb) ... Unpacking replacement libapt-pkg4.12:i386 ... Setting up libapt-pkg4.12:i386 (0.9.7.9+deb7u5) ... (Reading database ... 24 files and directories currently installed.) Preparing to replace apt 0.9.7.9+deb7u4 (using .../apt_0.9.7.9+deb7u5_i386.deb) ... Unpacking replacement apt ... Processing triggers for man-db ... Setting up apt (0.9.7.9+deb7u5) ... gpg: key B98321F9: Squeeze Stable Release Key debian-rele...@lists.debian.org not changed gpg: key 473041FA: Debian Archive Automatic Signing Key (6.0/squeeze) ftpmas...@debian.org not changed gpg: key 65FFB764: Wheezy Stable Release Key debian-rele...@lists.debian.org not changed gpg: key 46925553: Debian Archive Automatic Signing Key (7.0/wheezy) ftpmas...@debian.org not changed gpg: Total number processed: 4 gpg: unchanged: 4 (Reading database ... 24 files and directories currently installed.) Preparing to replace libapt-inst1.5:i386 0.9.7.9+deb7u4 (using .../libapt-inst1.5_0.9.7.9+deb7u5_i386.deb) ... Unpacking replacement libapt-inst1.5:i386 ... Preparing to replace apt-utils 0.9.7.9+deb7u4 (using .../apt-utils_0.9.7.9+deb7u5_i386.deb) ... Unpacking replacement apt-utils ... Preparing to replace apt-doc 0.9.7.9+deb7u4 (using .../apt-doc_0.9.7.9+deb7u5_all.deb) ... Unpacking replacement apt-doc ... Preparing to replace libsnmp-base 5.4.3~dfsg-2.8 (using .../libsnmp-base_5.4.3~dfsg-2.8+deb7u1_all.deb) ... Unpacking replacement libsnmp-base ... Preparing to replace libsnmp15 5.4.3~dfsg-2.8 (using .../libsnmp15_5.4.3~dfsg-2.8+deb7u1_i386.deb) ... Unpacking replacement libsnmp15 ... Preparing to replace oss-compat 2 (using .../oss-compat_2+deb7u1_i386.deb) ... Unpacking replacement oss-compat ... Processing triggers for man-db ... Setting up libapt-inst1.5:i386 (0.9.7.9+deb7u5) ... Setting up apt-utils (0.9.7.9+deb7u5) ... Setting up apt-doc (0.9.7.9+deb7u5) ... Setting up libsnmp-base (5.4.3~dfsg-2.8+deb7u1) ... Setting up libsnmp15 (5.4.3~dfsg-2.8+deb7u1) ... Setting up oss-compat (2+deb7u1) ... cp: missing destination file operand after `/lib/oss-compat/linux' Try `cp --help' for more information. dpkg: error processing oss-compat (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: oss-compat E: Sub-process /usr/bin/dpkg returned an error code (1) root@abcdef:~# apt-get update apt-get -u dist-upgrade Hit http://security.debian.org wheezy/updates Release.gpg Hit ftp://ftp.fi.debian.org wheezy Release.gpg ... ... ... ... Ign http://download.virtualbox.org wheezy/contrib Translation-en Ign http://download.virtualbox.org wheezy/contrib Translation-fi Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue [Y/n]? Setting up oss-compat (2+deb7u1) ... cp: missing destination file operand after `/lib/oss-compat/linux' Try `cp --help' for more information. dpkg: error processing oss-compat (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: oss-compat E: Sub-process /usr/bin/dpkg returned an error code (1)