wrong file permissions on /var/log/apt-cacher-ng abort package installation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt-cacher-ng (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Up-to-date xenial, `apt-get install apt-cacher-ng` produces:
Preparing to unpack .../apt-
Unpacking apt-cacher-ng (0.8.6-1) ...
Processing triggers for doc-base (0.10.6) ...
Processing 1 added doc-base file...
Processing triggers for man-db (2.7.4-1) ...
Processing triggers for systemd (227-2ubuntu1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up apt-cacher-ng (0.8.6-1) ...
Job for apt-cacher-
invoke-rc.d: initscript apt-cacher-ng, action "start" failed.
dpkg: error processing package apt-cacher-ng (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
apt-cacher-ng
Output of `systemctl status apt-cacher-
● apt-cacher-
Loaded: masked (/dev/null)
Active: failed (Result: start-limit) since Tue 2015-11-03 10:17:36 CST; 6min ago
Main PID: 4356 (code=exited, status=1/FAILURE)
Nov 03 10:17:36 anarchist systemd[1]: Failed to start Apt-Cacher NG software download proxy.
Nov 03 10:17:36 anarchist systemd[1]: apt-cacher-
Nov 03 10:17:36 anarchist systemd[1]: apt-cacher-
Nov 03 10:17:36 anarchist systemd[1]: apt-cacher-
Nov 03 10:17:36 anarchist systemd[1]: Stopped Apt-Cacher NG software download proxy.
Nov 03 10:17:36 anarchist systemd[1]: apt-cacher-
Nov 03 10:17:36 anarchist systemd[1]: Failed to start Apt-Cacher NG software download proxy.
Nov 03 10:17:36 anarchist systemd[1]: apt-cacher-
Nov 03 10:17:36 anarchist systemd[1]: apt-cacher-
Nov 03 10:17:47 anarchist systemd[1]: Stopped Apt-Cacher NG software download proxy.
Excerpt from `journalctl -xe`:
Nov 03 10:25:26 anarchist systemd[1]: Starting Apt-Cacher NG software download proxy...
-- Subject: Unit apt-cacher-
-- Defined-By: systemd
-- Support: http://
--
-- Unit apt-cacher-
Nov 03 10:25:26 anarchist apt-cacher-
Nov 03 10:25:26 anarchist apt-cacher-
Nov 03 10:25:26 anarchist apt-cacher-
Nov 03 10:25:26 anarchist systemd[1]: apt-cacher-
Nov 03 10:25:26 anarchist systemd[1]: Failed to start Apt-Cacher NG software download proxy.
-- Subject: Unit apt-cacher-
-- Defined-By: systemd
-- Support: http://
--
-- Unit apt-cacher-
--
-- The result is failed.
Nov 03 10:25:26 anarchist systemd[1]: apt-cacher-
Nov 03 10:25:26 anarchist systemd[1]: apt-cacher-
Nov 03 10:25:26 anarchist systemd[1]: apt-cacher-
Nov 03 10:25:26 anarchist systemd[1]: Stopped Apt-Cacher NG software download proxy.
-- Subject: Unit apt-cacher-
-- Defined-By: systemd
-- Support: http://
--
-- Unit apt-cacher-
Nov 03 10:25:26 anarchist systemd[1]: apt-cacher-
Nov 03 10:25:26 anarchist systemd[1]: Failed to start Apt-Cacher NG software download proxy.
-- Subject: Unit apt-cacher-
-- Defined-By: systemd
-- Support: http://
--
-- Unit apt-cacher-
--
-- The result is failed.
Nov 03 10:25:26 anarchist systemd[1]: apt-cacher-
Nov 03 10:25:26 anarchist systemd[1]: apt-cacher-
And finally:
% ls -ld /var/log/
drwxr-sr-x 2 usermetrics systemd-journal 4096 Aug 29 2014 /var/log/
Seems like g+w'ing that directory doesn't help.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: apt-cacher-ng (not installed)
ProcVersionSign
Uname: Linux 4.2.0-16-generic x86_64
ApportVersion: 2.19.2-0ubuntu1
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Nov 3 10:20:49 2015
EcryptfsInUse: Yes
InstallationDate: Installed on 2013-12-06 (696 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
SourcePackage: apt-cacher-ng
UpgradeStatus: No upgrade log present (probably fresh install)
modified.
modified.
mtime.conffile.
Changed in apt-cacher-ng (Ubuntu): | |
importance: | Undecided → Medium |
Fixing the user and group ownership fixes the problem:
% ls -ld /var/log/ apt-cacher- ng/ apt-cacher- ng//
drwxr-sr-x 2 apt-cacher-ng apt-cacher-ng 4096 Nov 3 10:40 /var/log/
So why did it use usermetrics: systemd- journal ??
apt-cacher-ng has never been installed on this box before.