Bug#762846: aptitude: Downloading changelogs fails with "Failed to download the changelog of …: Could not open file /tmp/aptitude-root.…:…/aptitudeDownload… - open (13: Permission denied) [IP: … 80]" as root since apt 1.1~exp3
Package: aptitude
Version: 0.6.11-1
With apt 1.1~exp3 from Debian Experimental installed, aptitude is no
more able to show downloaded changelogs temporarily when being called as
root:
# aptitude changelog dh-autoreconf
Err Changelog of dh-autoreconf
E: Changelog download failed: Could not open file /tmp/aptitude-root.16926:DkJnDf/aptitudeDownloaddH=t5-:ju5CZ9P,wwc211hbduMMVy5CW - open (13: Permission denied) [IP: 185.31.17.185 80]
Err Changelog of dh-autoreconf
E: Changelog download failed: Could not open file /tmp/aptitude-root.16926:DkJnDf/aptitudeDownloady=26TywAuyLtIgj3:oY-p6PB27S7j,xd - open (13: Permission denied) [IP: 185.31.17.184 80]
E: Couldn't find a changelog for dh-autoreconf
#
Happens in interactive mode, too, when pressing Shift-C. The error
message is then shown in the status line.
It still works fine as non-root user, though:
$ aptitude changelog dh-autoreconf
Get: Changelog of dh-autoreconf
$
Also "apt-get changelog dh-autoreconf" works fine, so this is not a
general issue in APT.
Reason is very likely that /tmp/aptitude-root.16926:DkJnDf/ belongs to
root and is only readable and writable by root while the downloading
backend likely runs under the new "_apt" user:
# ls -la /tmp/aptitude-root.16926:DkJnDf/
total 0
drwx------ 2 root root 40 Sep 25 17:46 .
drwxrwxrwt 59 root root 1920 Sep 25 18:12 ..
#
-- Package-specific info:
Terminal: eterm-color
$DISPLAY is set.
which aptitude: /usr/bin/aptitude
aptitude version information:
aptitude 0.6.11 compiled at Jun 9 2014 20:46:57
Compiler: g++ 4.8.3
Compiled against:
apt version 4.12.0
NCurses version 5.9
libsigc++ version: 2.2.11
Gtk+ support disabled.
Qt support disabled.
Current library versions:
NCurses version: ncurses 5.9.20140913
cwidget version: 0.5.17
Apt version: 4.12.0
aptitude linkage:
linux-vdso.so.1 (0x00007fff19d3d000)
libapt-pkg.so.4.12 => /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12 (0x00007f48d41b3000)
libncursesw.so.5 => /lib/x86_64-linux-gnu/libncursesw.so.5 (0x00007f48d3f7d000)
libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007f48d3d52000)
libsigc-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libsigc-2.0.so.0 (0x00007f48d3b4d000)
libcwidget.so.3 => /usr/lib/x86_64-linux-gnu/libcwidget.so.3 (0x00007f48d3846000)
libsqlite3.so.0 => /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007f48d3580000)
libboost_iostreams.so.1.55.0 => /usr/lib/x86_64-linux-gnu/libboost_iostreams.so.1.55.0 (0x00007f48d3368000)
libxapian.so.22 => /usr/lib/libxapian.so.22 (0x00007f48d2f53000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f48d2d35000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f48d2a2a000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f48d2729000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f48d2512000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f48d216a000)
libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f48d1f67000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f48d1d62000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f48d1b47000)
libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x00007f48d1937000)
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f48d1713000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f48d150b000)
libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f48d1305000)
/lib64/ld-linux-x86-64.so.2 (0x00007f48d4b60000)
*** Reporter, please consider answering these questions, where appropriate ***
* What led up to the situation?
* What exactly did you do (or not do) that was effective (or
ineffective)?
* What was the outcome of this action?
* What outcome did you expect instead?
*** End of the template - remove these template lines ***
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (990, 'unstable'), (600, 'testing'), (110, 'experimental'), (109, 'buildd-unstable'), (109, 'buildd-experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages aptitude depends on:
ii aptitude-common 0.6.11-1
ii libapt-pkg4.12 1.0.9.1
ii libboost-iostreams1.55.0 1.55.0+dfsg-3
ii libc6 2.19-11
ii libcwidget3 0.5.17-1
ii libgcc1 1:4.9.1-15
ii libncursesw5 5.9+20140913-1
ii libsigc++-2.0-0c2a 2.2.11-4
ii libsqlite3-0 3.8.6-1
ii libstdc++6 4.9.1-15
ii libtinfo5 5.9+20140913-1
ii libxapian22 1.2.18-1.1
Versions of packages aptitude recommends:
ii aptitude-doc-en [aptitude-doc] 0.6.11-1
ii libparse-debianchangelog-perl 1.2.0-1.1
ii sensible-utils 0.0.9
Versions of packages aptitude suggests:
ii apt-xapian-index 0.47
ii debtags 1.12.1
ii tasksel 3.26
-- no debconf information
Reply to: