RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Updates broke Lighttpd

    Scheduled Pinned Locked Moved Help and Support
    lighttpd4.5.1webserverlibssl1.1
    16 Posts 3 Posters 1.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      Peeteris @mitu
      last edited by Peeteris

      @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)
      
      1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator
        last edited by

        Did you check if you have any extra repositories added ?

        P 1 Reply Last reply Reply Quote 0
        • P
          Peeteris @mitu
          last edited by

          @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
          
          1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator
            last edited by mitu

            @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-installing libssl again, then check if lighttpd works.

            See also - https://askubuntu.com/questions/1117937/lighthttpd-wont-install-depends-libssl1-1-1-1-0-but-it-is-not-going-to

            P 1 Reply Last reply Reply Quote 0
            • P
              Peeteris @mitu
              last edited by

              @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.
              
              mituM 1 Reply Last reply Reply Quote 0
              • mituM
                mitu Global Moderator @Peeteris
                last edited by mitu

                @Peeteris You need to re-install it.

                apt update
                apt install --reinstall libssl1.1
                
                P 1 Reply Last reply Reply Quote 0
                • P
                  Peeteris @mitu
                  last edited by

                  @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.
                  
                  mituM 1 Reply Last reply Reply Quote 0
                  • mituM
                    mitu Global Moderator @Peeteris
                    last edited by

                    @Peeteris You need to learn how apt/apt-get/dpkg work. Did you run apt update before trying to re-install ? Post the output of

                    apt-cache policy libssl1.1
                    
                    P 1 Reply Last reply Reply Quote 0
                    • BuZzB
                      BuZz administrators
                      last edited by

                      Or use after apt update useaptitude install on lighttpd and go through the options when you get the dependency issue and choose to downgrade SSL.

                      To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                      P 1 Reply Last reply Reply Quote 1
                      • P
                        Peeteris @mitu
                        last edited by

                        @mitu

                        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:~ $ 
                        
                        1 Reply Last reply Reply Quote 0
                        • mituM
                          mitu Global Moderator
                          last edited by

                          Looks like I have to brush up also on some advanced apt options :).
                          You can try @BuZz's suggestion, but aptitude is not installed by default on a Raspbian lite.
                          Try forcing apt to install the Raspbian version:

                          sudo apt install --reinstall libssl1.1=1.1.0l-1~deb9u1
                          
                          1 Reply Last reply Reply Quote 1
                          • P
                            Peeteris @BuZz
                            last edited by

                            @BuZz said in Updates broke Lighttpd:

                            Or use after apt update useaptitude 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, but aptitude is not installed by default on a Raspbian lite.
                            Try forcing apt 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. :)

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post

                            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.