Updates broke Lighttpd
-
I'm not sure. Using practically untouched Retropie 4.5.1 image and installed lighttpd with a simple command: sudo apt-get install lighttpd.
Haven't changed any repositories. -
@Peeteris said in Updates broke Lighttpd:
sudo apt-get install lighttpd.
I did that just a few minutes ago and I don't have any issue:
pi@retropie:~ $ sudo systemctl status lighttpd ● lighttpd.service - Lighttpd Daemon Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: enabled) Active: active (running) since Fri 2019-10-04 18:28:36 UTC; 8min ago Main PID: 14532 (lighttpd) CGroup: /system.slice/lighttpd.service └─14532 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf Oct 04 18:28:35 retropie systemd[1]: Starting Lighttpd Daemon... Oct 04 18:28:36 retropie systemd[1]: Started Lighttpd Daemon. pi@retropie:~ $ apt show lighttpd Package: lighttpd Version: 1.4.45-1 Priority: optional Section: httpd Maintainer: Debian lighttpd maintainers <pkg-lighttpd-maintainers@lists.alioth.debian.org> Installed-Size: 858 kB Provides: httpd, httpd-cgi Depends: init-system-helpers (>= 1.18~), libattr1 (>= 1:2.4.46-8), libbz2-1.0, libc6 (>= 2.17), libfam0, libpcre3, libssl1.1 (>= 1.1.0), zlib1g (>= 1:1.1.4), mime-support, lsb-base (>= 3.0-6) Recommends: spawn-fcgi Suggests: openssl, rrdtool, php5-cgi, apache2-utils, lighttpd-doc Homepage: http://lighttpd.net/ Download-Size: 256 kB APT-Manual-Installed: yes APT-Sources: http://raspbian.raspberrypi.org/raspbian stretch/main armhf Packages
What does
apt show lighttpd
says ? -
@mitu
It shovs this:Package: lighttpd Version: 1.4.45-1 Priority: optional Section: httpd Maintainer: Debian lighttpd maintainers <pkg-lighttpd-maintainers@lists.alioth.debian.org> Installed-Size: 858 kB Provides: httpd, httpd-cgi Depends: init-system-helpers (>= 1.18~), libattr1 (>= 1:2.4.46-8), libbz2-1.0, libc6 (>= 2.17), libfam0, libpcre3, libssl1.1 (>= 1.1.0), zlib1g (>= 1:1.1.4), mime-support, lsb-base (>= 3.0-6) Recommends: spawn-fcgi Suggests: openssl, rrdtool, php5-cgi, apache2-utils, lighttpd-doc Homepage: http://lighttpd.net/ Download-Size: 256 kB APT-Sources: http://raspbian.raspberrypi.org/raspbian stretch/main armhf Packages Description: fast webserver with minimal memory footprint lighttpd is a small webserver and fast webserver developed with security in mind and a lot of features. It has support for * CGI, FastCGI and SSI * virtual hosts * URL rewriting * authentication (plain files, htpasswd, LDAP) * transparent content compression * conditional configuration * HTTP proxying and configuration is straight-forward and easy.
and this:
sudo systemctl status lighttpd ● lighttpd.service Loaded: masked (/dev/null; bad) Active: inactive (dead)
-
Did you check if you have any extra repositories added ?
-
@mitu Seems normal to me. Are there any odd one?
grep ^[^#] /etc/apt/sources.list /etc/apt/sources.list.d/* /etc/apt/sources.list:deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi /etc/apt/sources.list.d/php.list:deb https://packages.sury.org/php/ stretch main /etc/apt/sources.list.d/pipplware.list:deb http://pipplware.pplware.pt/pipplware/dists/stretch/main/binary/ ./ /etc/apt/sources.list.d/raspi.list:deb http://archive.raspberrypi.org/debian/ stretch main ui
-
@Peeteris said in Updates broke Lighttpd:
deb https://packages.sury.org/php/ stretch main
This repository contains a
libssl
version that's conflicting with the one distributed by the Raspbian repos. Remove the repository and try re-installinglibssl
again, then check iflighttpd
works. -
@mitu Removed the repository.
But I can't install the necessary version:pi@User:~ $ sudo apt install libssl1.1 Reading package lists... Done Building dependency tree Reading state information... Done libssl1.1 is already the newest version (1.1.1c-1+0~20190710.13+debian9~1.gbp359e02). 0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded. pi@User:~ $ sudo apt-get remove libssl1.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: libsdl1.2-dev : Depends: libpulse-dev but it is not going to be installed E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
-
@Peeteris You need to re-install it.
apt update apt install --reinstall libssl1.1
-
@mitu :/
sudo apt install --reinstall libssl1.1 Reading package lists... Done Building dependency tree Reading state information... Done Reinstallation of libssl1.1 is not possible, it cannot be downloaded. 0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
-
@Peeteris You need to learn how
apt/apt-get/dpkg
work. Did you runapt update
before trying to re-install ? Post the output ofapt-cache policy libssl1.1
-
Or use after apt update use
aptitude install
on lighttpd and go through the options when you get the dependency issue and choose to downgrade SSL. -
pi@User:~ $ sudo apt upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages have been kept back: libraspberrypi-bin libraspberrypi-dev libraspberrypi-doc libraspberrypi0 raspberrypi-bootloader raspberrypi-kernel raspberrypi-kernel-headers 0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded. pi@User:~ $ sudo apt update Hit:1 http://archive.raspberrypi.org/debian stretch InRelease Hit:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease Hit:3 http://pipplware.pplware.pt/pipplware/dists/stretch/main/binary ./ InRelease Reading package lists... Done Building dependency tree Reading state information... Done 7 packages can be upgraded. Run 'apt list --upgradable' to see them. pi@User:~ $ sudo apt install --reinstall libssl1.1 Reading package lists... Done Building dependency tree Reading state information... Done Reinstallation of libssl1.1 is not possible, it cannot be downloaded. 0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded. pi@User:~ $ apt-cache policy libssl1.1 libssl1.1: Installed: 1.1.1c-1+0~20190710.13+debian9~1.gbp359e02 Candidate: 1.1.1c-1+0~20190710.13+debian9~1.gbp359e02 Version table: *** 1.1.1c-1+0~20190710.13+debian9~1.gbp359e02 100 100 /var/lib/dpkg/status 1.1.0l-1~deb9u1 500 500 http://raspbian.raspberrypi.org/raspbian stretch/main armhf Packages pi@User:~ $
-
Looks like I have to brush up also on some advanced
apt
options :).
You can try @BuZz's suggestion, butaptitude
is not installed by default on a Raspbian lite.
Try forcingapt
to install the Raspbian version:sudo apt install --reinstall libssl1.1=1.1.0l-1~deb9u1
-
@BuZz said in Updates broke Lighttpd:
Or use after apt update use
aptitude install
on lighttpd and go through the options when you get the dependency issue and choose to downgrade SSL.@mitu said in Updates broke Lighttpd:
Looks like I have to brush up also on some advanced
apt
options :).
You can try @BuZz's suggestion, butaptitude
is not installed by default on a Raspbian lite.
Try forcingapt
to install the Raspbian version:sudo apt install --reinstall libssl1.1=1.1.0l-1~deb9u1
You are the best!
Both of these solutions would work out (tried 1st one without answering yes, but it would downgrade libssl and install lighttpd).
I used the @mitu one and then installed lighttpd.Thank you for being so helpful and knowledgeable. :)
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.