[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#986537: apache2: Reinstall fails due to missing conf files



Package: apache2
Version: 2.4.46-4
Severity: important
X-Debbugs-Cc: patrickjrdunford@gmail.com

Description: If apache2 is uninstalled and then reinstalled, the reinstallation will fail if the
user has removed conf files in /etc/apache2 directory. The script does not copy these files for
reinstallation in the same way as it does for first time installation. Therefore it is nearly
impossible for a user to perform a clean reinstallation of apache2 using the package installer.

Steps to reproduce:
apt install apache2
apt remove apache2
cd /etc/apache2
rm -rf *
apt install apache2

The installation fails when apache2.service is unable to start due to missing apache2.conf file in
/etc/apache2. A check of this directory reveals the reinstallation only copied in some of the files
that are present in a full installation.


-- Package-specific info:

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing-security
  APT policy: (500, 'testing-security'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-5-amd64 (SMP w/4 CPU threads)
Locale: LANG=en_NZ.UTF-8, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8), LANGUAGE=en_NZ:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages apache2 depends on:
ii  apache2-bin          2.4.46-4
ii  apache2-data         2.4.46-4
ii  apache2-utils        2.4.46-4
ii  dpkg                 1.20.7.1
ii  init-system-helpers  1.60
ii  lsb-base             11.1.0
ii  mime-support         3.66
ii  perl                 5.32.1-3
ii  procps               2:3.3.17-4

Versions of packages apache2 recommends:
ii  ssl-cert  1.1.0

Versions of packages apache2 suggests:
pn  apache2-doc                                      <none>
pn  apache2-suexec-pristine | apache2-suexec-custom  <none>
ii  firefox-esr [www-browser]                        78.9.0esr-1
ii  konqueror [www-browser]                          4:20.12.0-4

Versions of packages apache2-bin depends on:
ii  libapr1                  1.7.0-6
ii  libaprutil1              1.6.1-5
ii  libaprutil1-dbd-sqlite3  1.6.1-5
ii  libaprutil1-ldap         1.6.1-5
ii  libbrotli1               1.0.9-2+b2
ii  libc6                    2.31-11
ii  libcrypt1                1:4.4.17-1
ii  libcurl4                 7.74.0-1.1
ii  libjansson4              2.13.1-1.1
ii  libldap-2.4-2            2.4.57+dfsg-2
ii  liblua5.3-0              5.3.3-1.1+b1
ii  libnghttp2-14            1.43.0-1
ii  libpcre3                 2:8.39-13
ii  libssl1.1                1.1.1k-1
ii  libxml2                  2.9.10+dfsg-6.3+b1
ii  perl                     5.32.1-3
ii  zlib1g                   1:1.2.11.dfsg-2

Versions of packages apache2-bin suggests:
pn  apache2-doc                                      <none>
pn  apache2-suexec-pristine | apache2-suexec-custom  <none>
ii  firefox-esr [www-browser]                        78.9.0esr-1
ii  konqueror [www-browser]                          4:20.12.0-4

Versions of packages apache2 is related to:
ii  apache2      2.4.46-4
ii  apache2-bin  2.4.46-4

-- no debconf information


Reply to: