From: Teknoskillz <tek...@co...> - 2017-04-30 17:59:09
|
Thought I would try a rollback by doing: apt-get install apache2=2.4.18-2ubuntu3.1 Turns out there are dependencies missing, so someone on another list sugguested: > The missing dependencies are probably apache2-data apache2-utils . Try > "apt-get install apache2 apache2-data apache2-utils" Tried that, seems like those go in and still it tries to put in apache 2.4.25 even after its purged? Like we arent allowed to use previous Apache versions anymore? Or is maybe the auto updater locking something so the new version is always referenced? ===================================================================================== sudo apt-get --purge remove apache2 Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: apache2-data apache2-utils Use 'sudo apt autoremove' to remove them. The following packages will be REMOVED: apache2* 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. After this operation, 514 kB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 70372 files and directories currently installed.) Removing apache2 (2.4.25-3+deb.sury.org~xenial+1) ... Purging configuration files for apache2 (2.4.25-3+deb.sury.org~xenial+1) ... dpkg: warning: while removing apache2, directory '/var/www/html' not empty so no t removed dpkg: warning: while removing apache2, directory '/etc/apache2/sites-enabled' no t empty so not removed dpkg: warning: while removing apache2, directory '/etc/apache2/conf-enabled' not empty so not removed Processing triggers for man-db (2.7.5-1) ... :~# sudo apt-get autoremove Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: apache2-data apache2-utils 0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded. After this operation, 1,203 kB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 70164 files and directories currently installed.) Removing apache2-data (2.4.25-3+deb.sury.org~xenial+1) ... Removing apache2-utils (2.4.25-3+deb.sury.org~xenial+1) ... Processing triggers for man-db (2.7.5-1) ... ~# apt-get install apache2 apache2-data apache2-utils Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: www-browser apache2-doc The following NEW packages will be installed: apache2 apache2-data apache2-utils 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/462 kB of archives. After this operation, 1,717 kB of additional disk space will be used. Selecting previously unselected package apache2-utils. (Reading database ... 69850 files and directories currently installed.) Preparing to unpack .../apache2-utils_2.4.25-3+deb.sury.org~xenial+1_amd64.deb . .. Unpacking apache2-utils (2.4.25-3+deb.sury.org~xenial+1) ... Selecting previously unselected package apache2-data. Preparing to unpack .../apache2-data_2.4.25-3+deb.sury.org~xenial+1_all.deb ... Unpacking apache2-data (2.4.25-3+deb.sury.org~xenial+1) ... Selecting previously unselected package apache2. Preparing to unpack .../apache2_2.4.25-3+deb.sury.org~xenial+1_amd64.deb ... Unpacking apache2 (2.4.25-3+deb.sury.org~xenial+1) ... Processing triggers for man-db (2.7.5-1) ... Processing triggers for systemd (229-4ubuntu17) ... Processing triggers for ureadahead (0.100.0-19) ... Setting up apache2-utils (2.4.25-3+deb.sury.org~xenial+1) ... Setting up apache2-data (2.4.25-3+deb.sury.org~xenial+1) ... Setting up apache2 (2.4.25-3+deb.sury.org~xenial+1) ... Enabling module mpm_event. Enabling module authz_core. Enabling module authz_host. Enabling module authn_core. Enabling module auth_basic. Enabling module access_compat. Enabling module authn_file. Enabling module authz_user. Enabling module alias. Enabling module dir. Enabling module autoindex. Enabling module env. Enabling module mime. Enabling module negotiation. Enabling module setenvif. Enabling module filter. Enabling module deflate. Enabling module status. Enabling module reqtimeout. Enabling conf charset. Enabling conf localized-error-pages. Enabling conf other-vhosts-access-log. Enabling conf security. Enabling conf serve-cgi-bin. Enabling site 000-default. Job for apache2.service failed because the control process exited with error cod e. See "systemctl status apache2.service" and "journalctl -xe" for details. invoke-rc.d: initscript apache2, action "start" failed. ? apache2.service - LSB: Apache2 web server Loaded: loaded (/etc/init.d/apache2; enabled; vendor preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Sun 2017-04-30 17 :39:08 UTC; 5ms ago Docs: man:systemd-sysv-generator(8) Process: 8747 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILU RE) Apr 30 17:39:08 systemd[1]: Failed to start LSB: Apache... Apr 30 17:39:08 systemd[1]: apache2.service: Unit enter... Apr 30 17:39:08 systemd[1]: apache2.service: Failed wit... Hint: Some lines were ellipsized, use -l to show in full. insserv: warning: current start runlevel(s) (empty) of script `apache-htcachecle an' overrides LSB defaults (2 3 4 5). insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `apache-htc acheclean' overrides LSB defaults (0 1 6). Processing triggers for systemd (229-4ubuntu17) ... Processing triggers for ureadahead (0.100.0-19) ... :~# apt-get install apache2=2.4.18-2ubuntu3.1 Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: apache2 : Depends: apache2-bin (= 2.4.18-2ubuntu3.1) but 2.4.25-3+deb.sury.org~ xenial+1 is to be installed ====================================================================================== |