Cloudron install error (dpkg error)
-
-
wrote on Sep 27, 2023, 8:31 AM last edited by
The minimal version is provided by netcup as image for a fresh server. I'll try to install Ubuntu server. (not minimal)
-
wrote on Sep 27, 2023, 9:12 AM last edited by
Alright; after installing the whole Ubuntu Server from a DVD-image (not the minimal one) everything works just as expected.
Maybe you should delete Netcup from your docs on this page: https://docs.cloudron.io/installation/#install_1 – as it does not seem to be that simple to install.
-
-
Alright; after installing the whole Ubuntu Server from a DVD-image (not the minimal one) everything works just as expected.
Maybe you should delete Netcup from your docs on this page: https://docs.cloudron.io/installation/#install_1 – as it does not seem to be that simple to install.
wrote on Sep 27, 2023, 5:09 PM last edited by jdaviescoates Sep 27, 2023, 5:09 PM@David-0 said in Cloudron install error (dpkg error):
Maybe you should delete Netcup from your docs on this page: https://docs.cloudron.io/installation/#install_1 – as it does not seem to be that simple to install.
Agreed. There used to be a Cloudron image you could choose, but it doesn't appear to exist any more.
And I can't even work out how to install the full Ubuntu on Netcup! It's very frustrating.
I've got as far as selecting the Ubuntu DVD but now I can't login!
How did you do it @David-0 ? Thanks!
-
@David-0 said in Cloudron install error (dpkg error):
Maybe you should delete Netcup from your docs on this page: https://docs.cloudron.io/installation/#install_1 – as it does not seem to be that simple to install.
Agreed. There used to be a Cloudron image you could choose, but it doesn't appear to exist any more.
And I can't even work out how to install the full Ubuntu on Netcup! It's very frustrating.
I've got as far as selecting the Ubuntu DVD but now I can't login!
How did you do it @David-0 ? Thanks!
wrote on Sep 27, 2023, 5:51 PM last edited by@jdaviescoates said in Cloudron install error (dpkg error):
I've got as far as selecting the Ubuntu DVD but now I can't login!
Aha, I found this https://ubikann.com/2021/09/21/installing-ubuntu-server-20-04-lts-on-a-netcup-root-server/ which directed me towards installing the DVD using the VNC screen via the Netcup Server Control Panel.
I managed to use that (but you're right, not exactly simple) to install full Ubuntu and am now installing Cloudron...
-
-
wrote on Jan 31, 2024, 5:38 AM last edited by
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?
-
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?
wrote on Jan 31, 2024, 8:10 AM last edited by -
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?
@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.
-
wrote on Jan 31, 2024, 9:31 AM last edited by m-si Jan 31, 2024, 9:34 AM
@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
-
@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
@m-si oh, thanks for that info. Let me try a netcup installation right away.
-
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?
-
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?
@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. -
@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.@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)
-
wrote on Jan 31, 2024, 1:24 PM last edited by m-si Jan 31, 2024, 1:28 PM
@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 trieddpkg-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... -
wrote on Jan 31, 2024, 2:55 PM last edited by
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 -
OK, I have deployed a fix to workaround this. Thanks!
-
It's in the general install script but I have seen this only ever on netcup
-
wrote on Feb 1, 2024, 3:09 PM last edited by m-si Feb 1, 2024, 3:16 PM
@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...