Debian Bug report logs -
#706382
apt-cacher-ng: Upgrade of apt-cacher-ng failes
Reported by: Alexander Muthmann <deveth0mail@gmail.com>
Date: Mon, 29 Apr 2013 12:45:07 UTC
Severity: normal
Found in version apt-cacher-ng/0.7.11-1
Fixed in version apt-cacher-ng/0.7.13-1
Done: Eduard Bloch <blade@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, Eduard Bloch <blade@debian.org>:
Bug#706382; Package apt-cacher-ng.
(Mon, 29 Apr 2013 12:45:11 GMT) (full text, mbox, link).
Acknowledgement sent
to Alexander Muthmann <deveth0mail@gmail.com>:
New Bug report received and forwarded. Copy sent to Eduard Bloch <blade@debian.org>.
(Mon, 29 Apr 2013 12:45:11 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: apt-cacher-ng
Version: 0.7.11-1
Severity: normal
Dear Maintainer,
if i try to upgrade apt-cacher-ng it failes with the following message:
root@internal-services:~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... 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 apt-cacher-ng (0.7.11-1) ...
adduser: The user `apt-cacher-ng' already exists. Exiting.
dpkg: error processing apt-cacher-ng (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
apt-cacher-ng
E: Sub-process /usr/bin/dpkg returned an error code (1)
-- Package-specific info:
-- System Information:
Debian Release: 7.0
APT prefers testing-updates
APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 3.2.0-4-686-pae (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages apt-cacher-ng depends on:
ii adduser 3.113+nmu3
ii debconf [debconf-2.0] 1.5.49
ii dpkg 1.16.10
ii libbz2-1.0 1.0.6-4
ii libc6 2.13-38
ii libgcc1 1:4.7.2-5
ii liblzma5 5.1.1alpha+20120614-2
ii libstdc++6 4.7.2-5
ii libwrap0 7.6.q-24
ii zlib1g 1:1.2.7.dfsg-13
Versions of packages apt-cacher-ng recommends:
ii ed 1.6-2
ii perl 5.14.2-21
Versions of packages apt-cacher-ng suggests:
pn doc-base <none>
ii libfuse2 2.9.0-2+deb7u1
-- Configuration Files:
/etc/apt-cacher-ng/acng.conf changed:
CacheDir: /tank/AptCache
LogDir: /var/log/apt-cacher-ng
Port:3142
Remap-debrep: file:deb_mirror*.gz /debian ; file:backends_debian # Debian Archives
Remap-uburep: file:ubuntu_mirrors /ubuntu ; file:backends_ubuntu # Ubuntu Archives
Remap-debvol: file:debvol_mirror*.gz /debian-volatile ; file:backends_debvol # Debian Volatile Archives
Remap-cygwin: file:cygwin_mirrors /cygwin # ; file:backends_cygwin # incomplete, please create this file or specify preferred mirrors here
Remap-sfnet: file:sfnet_mirrors # ; file:backends_sfnet # incomplete, please create this file or specify preferred mirrors here
Remap-alxrep: file:archlx_mirrors /archlinux # ; file:backend_archlx # Arch Linux
Remap-fedora: file:fedora_mirrors # Fedora Linux
Remap-epel: file:epel_mirrors # Fedora EPEL
Remap-slrep: file:sl_mirrors # Scientific Linux
ReportPage: acng-report.html
ExTreshold: 4
/etc/apt-cacher-ng/backends_debian changed:
http://ftp.de.debian.org/debian/
-- debconf information:
apt-cacher-ng/gentargetmode: No automated setup
Information forwarded
to debian-bugs-dist@lists.debian.org, Eduard Bloch <blade@debian.org>:
Bug#706382; Package apt-cacher-ng.
(Mon, 29 Apr 2013 21:15:12 GMT) (full text, mbox, link).
Acknowledgement sent
to Eduard Bloch <edi@gmx.de>:
Extra info received and forwarded to list. Copy sent to Eduard Bloch <blade@debian.org>.
(Mon, 29 Apr 2013 21:15:12 GMT) (full text, mbox, link).
Message #10 received at 706382@bugs.debian.org (full text, mbox, reply):
Hallo,
* Alexander Muthmann [Mon, Apr 29 2013, 02:43:21PM]:
> Setting up apt-cacher-ng (0.7.11-1) ...
> adduser: The user `apt-cacher-ng' already exists. Exiting.
> dpkg: error processing apt-cacher-ng (--configure):
> subprocess installed post-installation script returned error exit status 1
> Errors were encountered while processing:
> apt-cacher-ng
> E: Sub-process /usr/bin/dpkg returned an error code (1)
This does not make sense, the adduser call has not been changed for
ages. Please run in a root console:
adduser --quiet --system --group --no-create-home --home /var/cache/apt-cacher-ng apt-cacher-ng
echo $?
which adduser
and post the output of the commands above.
Regards,
Eduard.
--
<jbf> z und y sind am falschen platy
Information forwarded
to debian-bugs-dist@lists.debian.org, Eduard Bloch <blade@debian.org>:
Bug#706382; Package apt-cacher-ng.
(Thu, 02 May 2013 09:12:12 GMT) (full text, mbox, link).
Acknowledgement sent
to amuthmann@dev-eth0.de:
Extra info received and forwarded to list. Copy sent to Eduard Bloch <blade@debian.org>.
(Thu, 02 May 2013 09:12:12 GMT) (full text, mbox, link).
Message #15 received at 706382@bugs.debian.org (full text, mbox, reply):
Hi Eduard,
thanks for your reply.
The output produced is:
root@internal-services:~# adduser --quiet --system --group
--no-create-home --home /var/cache/apt-cacher-ng apt-cacher-ng
adduser: The user `apt-cacher-ng' already exists. Exiting.
root@internal-services:~# echo $?
1
root@internal-services:~# which adduser
/usr/sbin/adduser
Hope this helps?
Information forwarded
to debian-bugs-dist@lists.debian.org, Eduard Bloch <blade@debian.org>:
Bug#706382; Package apt-cacher-ng.
(Sun, 05 May 2013 10:03:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Eduard Bloch <edi@gmx.de>:
Extra info received and forwarded to list. Copy sent to Eduard Bloch <blade@debian.org>.
(Sun, 05 May 2013 10:03:04 GMT) (full text, mbox, link).
Message #20 received at 706382@bugs.debian.org (full text, mbox, reply):
Hallo,
* Alexander Muthmann [Thu, May 02 2013, 11:10:16AM]:
> Hi Eduard,
>
> thanks for your reply.
>
> The output produced is:
> root@internal-services:~# adduser --quiet --system --group
> --no-create-home --home /var/cache/apt-cacher-ng apt-cacher-ng
> adduser: The user `apt-cacher-ng' already exists. Exiting.
> root@internal-services:~# echo $?
> 1
> root@internal-services:~# which adduser
> /usr/sbin/adduser
>
> Hope this helps?
Maybe, after checking up with adduser developers, there is a theory.
Do you remember when the package has been installed initially?
Could you show the user information for this account, i.e. run:
getent passwd apt-cacher-ng
Or just check the UID, if the UID is outside of the reserved range
(100-999) then something went wrong before. You could try to change the
UIDs or simply delete this account (man deluser) and then recreate it as
system-user with the command mentioned before. And afterwards, you
would need to adapt the permissions of the files to the new UID which
the "new" account got assigned afterwards (i.e. like: chown -R NEWUID
/var/cache/apt-cacher-ng /etc/apt-cacher-ng /var/log/apt-cacher-ng ).
Regards,
Eduard.
Information forwarded
to debian-bugs-dist@lists.debian.org, Eduard Bloch <blade@debian.org>:
Bug#706382; Package apt-cacher-ng.
(Fri, 10 May 2013 08:39:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Alexander Muthmann <amuthmann@dev-eth0.de>:
Extra info received and forwarded to list. Copy sent to Eduard Bloch <blade@debian.org>.
(Fri, 10 May 2013 08:39:05 GMT) (full text, mbox, link).
Message #25 received at 706382@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
sry, i just send the reply to eduard, not the bugs list, therefore here
again:
Ahh great, that seems to be the problem.
The user has the User-ID 25001 as I use an nfs share for the Cache and had
to move the user to this UID.
Is there a change to get apt-cacher-ng running and updating with this UID
or do I have to modify my whole NFS setup?
i just deleted the apt-cacher-ng user and recreated it with a lower UID,
afterwards the upgrade worked fine. Thank you for your help!
On Sun, May 5, 2013 at 11:59 AM, Eduard Bloch <edi@gmx.de> wrote:
> Hallo,
> * Alexander Muthmann [Thu, May 02 2013, 11:10:16AM]:
> > Hi Eduard,
> >
> > thanks for your reply.
> >
> > The output produced is:
> > root@internal-services:~# adduser --quiet --system --group
> > --no-create-home --home /var/cache/apt-cacher-ng apt-cacher-ng
> > adduser: The user `apt-cacher-ng' already exists. Exiting.
> > root@internal-services:~# echo $?
> > 1
> > root@internal-services:~# which adduser
> > /usr/sbin/adduser
> >
> > Hope this helps?
>
> Maybe, after checking up with adduser developers, there is a theory.
>
> Do you remember when the package has been installed initially?
> Could you show the user information for this account, i.e. run:
>
> getent passwd apt-cacher-ng
>
> Or just check the UID, if the UID is outside of the reserved range
> (100-999) then something went wrong before. You could try to change the
> UIDs or simply delete this account (man deluser) and then recreate it as
> system-user with the command mentioned before. And afterwards, you
> would need to adapt the permissions of the files to the new UID which
> the "new" account got assigned afterwards (i.e. like: chown -R NEWUID
> /var/cache/apt-cacher-ng /etc/apt-cacher-ng /var/log/apt-cacher-ng ).
>
> Regards,
> Eduard.
>
>
[Message part 2 (text/html, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Eduard Bloch <blade@debian.org>:
Bug#706382; Package apt-cacher-ng.
(Sun, 12 May 2013 22:15:04 GMT) (full text, mbox, link).
Acknowledgement sent
to Eduard Bloch <edi@gmx.de>:
Extra info received and forwarded to list. Copy sent to Eduard Bloch <blade@debian.org>.
(Sun, 12 May 2013 22:15:04 GMT) (full text, mbox, link).
Message #30 received at 706382@bugs.debian.org (full text, mbox, reply):
clone 706382 -1
retitle -1 Recreating a system user fails when its UID is out of range
reassign -1 adduser
severity -1 minor
thanks
As discussed, the error handling in this case needs some improvement. As
least there should be a meaningful error message telling where the
error originated.
And/or it maybe should not be an error whatsoever, i.e. when the account
exists then there is no need to recreate it.
Regards,
Eduard.
Bug 706382 cloned as bug 708073
Request was from Eduard Bloch <edi@gmx.de>
to control@bugs.debian.org.
(Sun, 12 May 2013 22:15:10 GMT) (full text, mbox, link).
Reply sent
to Eduard Bloch <blade@debian.org>:
You have taken responsibility.
(Tue, 21 May 2013 21:06:27 GMT) (full text, mbox, link).
Notification sent
to Alexander Muthmann <deveth0mail@gmail.com>:
Bug acknowledged by developer.
(Tue, 21 May 2013 21:06:27 GMT) (full text, mbox, link).
Message #37 received at 706382-close@bugs.debian.org (full text, mbox, reply):
Source: apt-cacher-ng
Source-Version: 0.7.13-1
We believe that the bug you reported is fixed in the latest version of
apt-cacher-ng, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 706382@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Eduard Bloch <blade@debian.org> (supplier of updated apt-cacher-ng package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Tue, 21 May 2013 20:23:51 +0200
Source: apt-cacher-ng
Binary: apt-cacher-ng
Architecture: source amd64
Version: 0.7.13-1
Distribution: unstable
Urgency: medium
Maintainer: Eduard Bloch <blade@debian.org>
Changed-By: Eduard Bloch <blade@debian.org>
Description:
apt-cacher-ng - caching proxy server for software repositories
Closes: 698466 704790 706382
Changes:
apt-cacher-ng (0.7.13-1) unstable; urgency=medium
.
* New upstream release
* using Ubuntu config optimization added in the last version only where curl
or wget are available and added curl or wget to Suggests (closes: #698466)
* working around adduser failure on certain systems (closes: #706382)
* added basic support for avahi publishing contributed by Lissandro,
thanks! (closes: #704790)
Checksums-Sha1:
3615ed5a74d1ac1e650a5ff787a28772f2952635 1257 apt-cacher-ng_0.7.13-1.dsc
bb6c3cf8e116ed9800543b7864a3a7b406aa4d5a 261040 apt-cacher-ng_0.7.13.orig.tar.xz
d27929ec6698cf802df1aa110ea46afb301ae253 26344 apt-cacher-ng_0.7.13-1.debian.tar.xz
676d3fbaccde9c74f9201b2e588d780442a96843 416990 apt-cacher-ng_0.7.13-1_amd64.deb
Checksums-Sha256:
d4eb1d1da7a8be26eb87677e150a9f57c3dfe79ffd586b4f31d587e0ee7ebf8e 1257 apt-cacher-ng_0.7.13-1.dsc
f3b6a96aea98cbcf1839109f15db668ea8891264145cdcdc9a0dd5460814db14 261040 apt-cacher-ng_0.7.13.orig.tar.xz
b5b03961f28076550d4ea495550bc27141e362b6a276e38ba044db6bbc7a966b 26344 apt-cacher-ng_0.7.13-1.debian.tar.xz
77715d9ac3fe450ee77842cbce125e2b6b91b5b64de9d637b5e6998e5b0e35c1 416990 apt-cacher-ng_0.7.13-1_amd64.deb
Files:
b4891a0b63ef268ec70ab44559d89f23 1257 net optional apt-cacher-ng_0.7.13-1.dsc
afeaab960900bbe6b105d71a9cf49736 261040 net optional apt-cacher-ng_0.7.13.orig.tar.xz
82404f7730f08467344418b952809780 26344 net optional apt-cacher-ng_0.7.13-1.debian.tar.xz
828cb9082af6a2a7f0405e72da61bf07 416990 net optional apt-cacher-ng_0.7.13-1_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iD8DBQFRm9KZ4QZIHu3wCMURAtnRAJ9CpvEqVajBtO/27fUhi4fBYzJ8MQCfWtoh
JpSsFiiadjCdAdE74zuNL8A=
=SdhF
-----END PGP SIGNATURE-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Wed, 21 Aug 2013 07:31:57 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sat Jul 1 20:51:17 2023;
Machine Name:
bembo
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.