on both my home and work pc, problems with apache2 package and apt

Bug #1779753 reported by Daniel A Sprouse on 2018-07-02

This bug report will be marked for expiration in 49 days if no further activity occurs. (find out why)

8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apache2 (Ubuntu)
Undecided
Unassigned

Bug Description

ever since upgrade to 18.04 both my home pc and work pc have had issues with apt and the error always mentions apache - see attached text file

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: apache2 2.4.29-1ubuntu4.2
ProcVersionSignature: Ubuntu 4.15.0-24.26-generic 4.15.18
Uname: Linux 4.15.0-24-generic x86_64
Apache2ConfdDirListing: False
Apache2Modules: httpd (pid 1201) already running
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
Date: Mon Jul 2 15:10:01 2018
InstallationDate: Installed on 2018-03-15 (109 days ago)
InstallationMedia: Ubuntu 16.04.4 LTS "Xenial Xerus" - Release amd64 (20180228)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: apache2
UpgradeStatus: No upgrade log present (probably fresh install)

Andreas Hasenack (ahasenack) wrote :

Thanks for filing this bug in Ubuntu.

Please attach the following information:
- output of "sudo apt update && sudo apt -f install"
- output of "dpkg -l|grep apache"
- apt-cache policy apache2

The logs show just bits and pieces of what looks like failed downloads.

Changed in apache2 (Ubuntu):
status: New → Incomplete
Download full text (7.2 KiB)

dsprouse@pavlovsFrog:~$ sudo apt update && sudo apt -f install
[sudo] password for dsprouse:
Hit:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:3 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2
kB]
Get:4 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6
kB]
Get:5 http://us.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages
[155 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64
Packages [173 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu bionic-updates/main
Translation-en [65.8 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11
Metadata [113 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 48x48
Icons [25.1 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 64x64
Icons [44.5 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe amd64
Packages [111 kB]
Get:12 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe i386
Packages [111 kB]
Get:13 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe
Translation-en [47.3 kB]
Get:14 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe amd64
DEP-11 Metadata [122 kB]
Get:15 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11
48x48 Icons [124 kB]
Get:16 http://us.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11
64x64 Icons [198 kB]
Get:17 http://security.ubuntu.com/ubuntu bionic-security/main amd64
Packages [110 kB]
Get:18 http://us.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64
DEP-11 Metadata [2,468 B]
Get:19 http://us.archive.ubuntu.com/ubuntu bionic-backports/universe amd64
DEP-11 Metadata [5,100 B]
Ign:20 http://dl.google.com/linux/chrome/deb stable InRelease

Hit:21 http://dl.google.com/linux/chrome/deb stable Release
Get:22 http://security.ubuntu.com/ubuntu bionic-security/main i386 Packages
[92.8 kB]
Get:23 http://security.ubuntu.com/ubuntu bionic-security/main
Translation-en [40.7 kB]
Get:24 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11
Metadata [204 B]
Get:25 http://security.ubuntu.com/ubuntu bionic-security/universe amd64
Packages [33.3 kB]
Get:27 http://security.ubuntu.com/ubuntu bionic-security/universe i386
Packages [33.2 kB]
Get:28 http://security.ubuntu.com/ubuntu bionic-security/universe
Translation-en [18.8 kB]
Get:29 http://security.ubuntu.com/ubuntu bionic-security/universe amd64
DEP-11 Metadata [2,452 B]
Fetched 1,874 kB in 1s (1,283 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
19 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer
required:
  flashplugin-installer gimp-gmic libass5 libaudcore3 libaudgui3 libaudtag2
libavcodec-ffmpeg56 libavdevice-ffmpeg56 libavfilter-ffmpeg5
  libavformat-ffmpeg56 libavresample-ffmpeg2 libavutil-ffmpeg54 libbinio1v5
libbluray1 libcapnp-0.5.3 libchromaprint0 libguess1 libhardware2
  libhybris libhybris-common1 lib...

Read more...

Andreas Hasenack (ahasenack) wrote :

There doesn't seem to be any error now. apt -f install finished fine (-f stands for "fix"), and the dpkg -l output also showed the apache packages in the expected "ii" state (installed, no errors).

Are you still having problems with apt in general? apt upgrade? apt dist-upgrade?

Download full text (11.7 KiB)

apt just throws errors for apache, I don't know if the errors are legit,
but it never complains about anything else. per ticket 1779686
I installed apachedoc and then re-ran the commands you sent earlier and it
didn't complain

dsprouse@pavlovsFrog:~$ sudo apt install apache2-doc
[sudo] password for dsprouse:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer
required:
  flashplugin-installer gimp-gmic libass5 libaudcore3 libaudgui3 libaudtag2
libavcodec-ffmpeg56 libavdevice-ffmpeg56 libavfilter-ffmpeg5
  libavformat-ffmpeg56 libavresample-ffmpeg2 libavutil-ffmpeg54 libbinio1v5
libbluray1 libcapnp-0.5.3 libchromaprint0 libguess1 libhardware2 libhybris
  libhybris-common1 libllvm5.0 libmad0 libmate-desktop-2-17 libmedia1
libmimic0 libopencv-calib3d2.4v5 libopencv-contrib2.4v5 libopencv-core2.4v5
  libopencv-features2d2.4v5 libopencv-flann2.4v5 libopencv-highgui2.4v5
libopencv-imgproc2.4v5 libopencv-legacy2.4v5 libopencv-ml2.4v5
  libopencv-objdetect2.4v5 libopencv-video2.4v5 libopenjpeg5 libpodofo0.9.3
libpostproc-ffmpeg53 libqt5clucene5 libschroedinger-1.0-0 libsodium18
  libsrtp0 libswresample-ffmpeg1 libswscale-ffmpeg3 libtbb2 libtiff-tools
libva1 libvte-common libvte9 libwebpdemux1 libwildmidi1 libx264-148
libx265-79
  linux-headers-4.15.0-22 linux-headers-4.15.0-22-generic
linux-image-4.15.0-22-generic linux-modules-4.15.0-22-generic
  linux-modules-extra-4.15.0-22-generic linux-signed-generic-hwe-16.04
oxideqt-codecs-extra qml-module-qtwebkit snap-confine snapd-login-service
  xserver-xorg-input-evdev-hwe-16.04 xserver-xorg-input-synaptics-hwe-16.04
xserver-xorg-legacy-hwe-16.04 xserver-xorg-video-amdgpu-hwe-16.04
  xserver-xorg-video-qxl-hwe-16.04 xserver-xorg-video-vesa-hwe-16.04
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  apache2-doc
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 3,697 kB of archives.
After this operation, 24.0 MB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu bionic-updates/main amd64
apache2-doc all 2.4.29-1ubuntu4.2 [3,697 kB]
Fetched 3,697 kB in 1s (3,689 kB/s)
Selecting previously unselected package apache2-doc.
(Reading database ... 237029 files and directories currently installed.)
Preparing to unpack .../apache2-doc_2.4.29-1ubuntu4.2_all.deb ...
Unpacking apache2-doc (2.4.29-1ubuntu4.2) ...
Setting up apache2-doc (2.4.29-1ubuntu4.2) ...
apache2_invoke: Enable configuration apache2-doc
Processing triggers for doc-base (0.10.8) ...
Processing 1 added doc-base file...
Registering documents with scrollkeeper...
dsprouse@pavlovsFrog:~$ a2enconf apache2-doc
Conf apache2-doc already enabled
dsprouse@pavlovsFrog:~$ ls -la /etc/apache2/conf-available/apache2-doc.conf
/etc/apache2/conf-
ls: cannot access '/etc/apache2/conf-': No such file or directory
-rw-r--r-- 1 root root 221 Jun 7 16:10
/etc/apache2/conf-available/apache2-doc.conf
dsprouse@pavlovsFrog:~$ sudo apt update && sudo apt -f install
Hit:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://us.archive.ubuntu.com/ubuntu bionic-upda...

Andreas Hasenack (ahasenack) wrote :

It looks fine now.

>ls: cannot access '/etc/apache2/conf-': No such file or directory

That's a copy and paste error, the line probably wrapped. We are looking at /etc/apache2/conf-available and /etc/apache2/conf-enabled.

What the a2enconf command does is create a symlink from enabled to available. For some reason, when you upgraded apache2-doc in the beginning and it tried to enable the doc configuration, the file in conf-available wasn't there. That is odd, because it's the package itself that puts the file there. Most likely a mistake was made somewhere and that file was removed incorrectly, but there is no way to know now.

thanks, appreciate it. Have a great day.

On Thu, Jul 5, 2018 at 7:38 AM, Andreas Hasenack <email address hidden>
wrote:

> It looks fine now.
>
> >ls: cannot access '/etc/apache2/conf-': No such file or directory
>
> That's a copy and paste error, the line probably wrapped. We are looking
> at /etc/apache2/conf-available and /etc/apache2/conf-enabled.
>
> What the a2enconf command does is create a symlink from enabled to
> available. For some reason, when you upgraded apache2-doc in the
> beginning and it tried to enable the doc configuration, the file in
> conf-available wasn't there. That is odd, because it's the package
> itself that puts the file there. Most likely a mistake was made
> somewhere and that file was removed incorrectly, but there is no way to
> know now.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1779753
>
> Title:
> on both my home and work pc, problems with apache2 package and apt
>
> Status in apache2 package in Ubuntu:
> Incomplete
>
> Bug description:
> ever since upgrade to 18.04 both my home pc and work pc have had
> issues with apt and the error always mentions apache - see attached
> text file
>
> ProblemType: Bug
> DistroRelease: Ubuntu 18.04
> Package: apache2 2.4.29-1ubuntu4.2
> ProcVersionSignature: Ubuntu 4.15.0-24.26-generic 4.15.18
> Uname: Linux 4.15.0-24-generic x86_64
> Apache2ConfdDirListing: False
> Apache2Modules: httpd (pid 1201) already running
> ApportVersion: 2.20.9-0ubuntu7.2
> Architecture: amd64
> Date: Mon Jul 2 15:10:01 2018
> InstallationDate: Installed on 2018-03-15 (109 days ago)
> InstallationMedia: Ubuntu 16.04.4 LTS "Xenial Xerus" - Release amd64
> (20180228)
> ProcEnviron:
> TERM=xterm-256color
> PATH=(custom, no user)
> LANG=en_US.UTF-8
> SHELL=/bin/bash
> SourcePackage: apache2
> UpgradeStatus: No upgrade log present (probably fresh install)
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/
> 1779753/+subscriptions
>

--
-- -- Sincerely Yours,
. Daniel Sprouse

Daniel Allen Sprouse
Unix/Linux Administrator
<email address hidden>
google voice: 512-815-2048

ne tectis a demergu, pater, formabis foramine in landa.
.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers