Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Cloudron install error (dpkg error)

Cloudron install error (dpkg error)

Scheduled Pinned Locked Moved Solved Support
installationnetcup
20 Posts 7 Posters 3.4k Views 7 Watching
  • 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.
  • M m-si

    The minimal image of ubuntu 22.04 of netcup seems to have resolvconf not installed, which seems to be a dependency for init-ubuntu.sh which is used by cloudron-setup. So it produces a error like this :

    Fehler traten auf beim Bearbeiten von:^M
    resolvconf^M
    needrestart is being skipped since dpkg has failed
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    

    To fix it. resolvconf needs to be installed manually with these commands.

    sudo apt-get update && sudo apt-get upgrade -y
    sudo apt-get install -y resolvconf
    sudo chattr -i /etc/resolv.conf && \
    sudo dpkg --configure resolvconf
    

    and one can proceed happily with the installation, without needing to use the full Ubuntu DVD. Can someone approve this fix?

    girishG Offline
    girishG Offline
    girish
    Staff
    wrote on last edited by
    #9

    @m-si thanks yes, you can proceed with the fix. I have never tried to install with DVD and only used the Cloudron providers, so have not hit the issue.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      m-si
      wrote on last edited by m-si
      #10

      @girish @jdaviescoates The fix is not for the DVD Installation, but for the "original" netcup ubuntu 22.04 minimal image Netcup provides to their users in the Netcup SCP. It makes the DVD full installation of Ubuntu obsolete (and solves the issue of the OP) and reduces the maintenance burden of Netcup RS server customers... with approval I thought of confirmation on a different system by a different user than me. Sorry for the confusion have to work on my english skills 😉

      girishG 1 Reply Last reply
      1
      • M m-si

        @girish @jdaviescoates The fix is not for the DVD Installation, but for the "original" netcup ubuntu 22.04 minimal image Netcup provides to their users in the Netcup SCP. It makes the DVD full installation of Ubuntu obsolete (and solves the issue of the OP) and reduces the maintenance burden of Netcup RS server customers... with approval I thought of confirmation on a different system by a different user than me. Sorry for the confusion have to work on my english skills 😉

        girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #11

        @m-si oh, thanks for that info. Let me try a netcup installation right away.

        1 Reply Last reply
        0
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #12

          Grrr. I tried with VPS 500 G10s Root-Server . Turns out it has no AVX...

          @m-si what server type are you using on Netcup?

          fbartelsF 1 Reply Last reply
          0
          • girishG girish

            Grrr. I tried with VPS 500 G10s Root-Server . Turns out it has no AVX...

            @m-si what server type are you using on Netcup?

            fbartelsF Offline
            fbartelsF Offline
            fbartels
            App Dev
            wrote on last edited by
            #13

            @girish At Netcup you need their "Root-Servers", so one of these https://www.netcup.de/vserver/

            Reading the post made me remember that not that long ago I also made a new installation on a Netcup RS 2000 G9.5 with their normal Ubuntu image. It did not complain that resolfconf was missing, but instead that /etc/resolv.conf was marked immutable. Since he makes the file readable in his snippet I think @m-si ran into the same issue.

            girishG 1 Reply Last reply
            1
            • fbartelsF fbartels

              @girish At Netcup you need their "Root-Servers", so one of these https://www.netcup.de/vserver/

              Reading the post made me remember that not that long ago I also made a new installation on a Netcup RS 2000 G9.5 with their normal Ubuntu image. It did not complain that resolfconf was missing, but instead that /etc/resolv.conf was marked immutable. Since he makes the file readable in his snippet I think @m-si ran into the same issue.

              girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #14

              @fbartels thanks!

              Luckily, I managed to reproduce this already by simply commenting out the AVX check. Debugging...

              Setting up nginx-full (1.18.0-6ubuntu14.4) ...
              Processing triggers for libc-bin (2.35-0ubuntu3.6) ...
              Processing triggers for ufw (0.36.1-4ubuntu0.1) ...
              Processing triggers for man-db (2.10.2-1) ...
              Errors were encountered while processing:
               resolvconf
              needrestart is being skipped since dpkg has failed
              E: Sub-process /usr/bin/dpkg returned an error code (1)
              
              
              1 Reply Last reply
              0
              • M Offline
                M Offline
                m-si
                wrote on last edited by m-si
                #15

                @fbartels you are right the immutability is solved by the last two lines sudo chattr -i /etc/resolv.conf && ... but with my RS 2000 G9.5 the whole resolv.conf seemed to miss when I tried dpkg-reconfigure resolvconf...therefore I simply installed it...like in the snippet...
                @girish The VPS have generally AVX not enabled it's only supported by the RS line a supporter of Netcup told me... Maybe this should be mentioned on the list of cloudron providers...

                1 Reply Last reply
                2
                • jdaviescoatesJ Offline
                  jdaviescoatesJ Offline
                  jdaviescoates
                  wrote on last edited by
                  #16

                  Just to say, I think I've said this elsewhere before, but yes, according to Netcup:

                  I expect the Cloudron install script to work if you run the command "chattr -i /etc/resolv.conf" before starting it

                  See
                  https://twitter.com/netcup/status/1735265955364720757

                  I use Cloudron with Gandi & Hetzner

                  1 Reply Last reply
                  1
                  • girishG Offline
                    girishG Offline
                    girish
                    Staff
                    wrote on last edited by
                    #17

                    OK, I have deployed a fix to workaround this. Thanks!

                    scookeS 1 Reply Last reply
                    2
                    • girishG girish

                      OK, I have deployed a fix to workaround this. Thanks!

                      scookeS Offline
                      scookeS Offline
                      scooke
                      wrote on last edited by
                      #18

                      @girish Is this workaround now in the general install script, or just more specifically for these users?

                      A life lived in fear is a life half-lived

                      1 Reply Last reply
                      1
                      • girishG Offline
                        girishG Offline
                        girish
                        Staff
                        wrote on last edited by
                        #19

                        It's in the general install script but I have seen this only ever on netcup

                        1 Reply Last reply
                        1
                        • M Offline
                          M Offline
                          m-si
                          wrote on last edited by m-si
                          #20

                          @girish thanks a lot super fast response. Just installed cloudron this day with the new setup-script. For the people reading this in the future) setting the immutable bit did the trick, no installation like I supposed needed. Works like charme...

                          1 Reply Last reply
                          1
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Bookmarks
                          • Search