Page 1 of 1

Fail: Upgrade from Ubuntu 22.04 to Ubuntu 24.04  [SOLVED]

Posted: Tue 17. Sep 2024, 11:17
by Tony20
Hello, fallow the OS upgrade from Ubuntu 22.04 to Ubuntu 24.04 instruction, upgrade fail!


Now I can't not access the Web Control Panel.


Welcome to Ubuntu 22.04.5 LTS (GNU/Linux 5.15.0-122-generic x86_64)

* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/pro

System information as of Tue Sep 17 11:05:45 AM CEST 2024




Welcome to Ubuntu 22.04.5 LTS (GNU/Linux 5.15.0-122-generic x86_64)

* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/pro

System information as of Tue Sep 17 11:22:16 AM CEST 2024

System load: 0.16 Temperature: 38.0 C
Usage of /home: 0.2% of 1.72TB Processes: 208
Memory usage: 7% Users logged in: 0
Swap usage: 0% IPv4 address for eno1:

* Strictly confined Kubernetes makes edge and IoT secure. Learn how MicroK8s
just raised the bar for easy, resilient and secure K8s cluster deployment.

https://ubuntu.com/engage/secure-kubernetes-at-the-edge
--------------------------------------------------------------------------------
This server is powered by KeyHelp!

* Control panel access:

--------------------------------------------------------------------------------
Expanded Security Maintenance for Applications is enabled.

0 updates can be applied immediately.

New release '24.04.1 LTS' available.
Run 'do-release-upgrade' to upgrade to it.


Last login: Tue Sep 17 11:05:47 2024 from
*@panel:~$ su root
Password:
su: Authentication failure
*@panel:~$ su root
Password:
root@panel:/home/# cd
root@panel:~# do-release-upgrade
Checking for a new Ubuntu release

= Welcome to Ubuntu 24.04 LTS 'Noble Numbat' =

The Ubuntu team is proud to announce Ubuntu 24.04 LTS 'Noble Numbat'.

To see what's new in this release, visit:
https://wiki.ubuntu.com/NobleNumbat/ReleaseNotes

Ubuntu is a Linux distribution for your desktop or server, with a fast
and easy install, regular releases, a tight selection of excellent
applications installed by default, and almost any other software you
can imagine available through the network.

We hope you enjoy Ubuntu.

== Feedback and Helping ==

If you would like to help shape Ubuntu, take a look at the list of
ways you can participate at

http://www.ubuntu.com/community/participate/

Your comments, bug reports, patches and suggestions will help ensure
that our next release is the best release of Ubuntu ever. If you feel
that you have found a bug please read:

http://help.ubuntu.com/community/ReportingBugs

Then report bugs using apport in Ubuntu. For example:

ubuntu-bug linux

will open a bug report in Launchpad regarding the linux package.

If you have a question, or if you think you may have found a bug but
aren't sure, first try asking on the #ubuntu or #ubuntu-bugs IRC
channels on Libera.Chat, on the Ubuntu Users mailing list, or on the
Ubuntu forums:

http://help.ubuntu.com/community/InternetRelayChat
http://lists.ubuntu.com/mailman/listinfo/ubuntu-users
http://www.ubuntuforums.org/


== More Information ==

You can find out more about Ubuntu on our website, IRC channel and wiki.
If you're new to Ubuntu, please visit:

http://www.ubuntu.com/


To sign up for future Ubuntu announcements, please subscribe to Ubuntu's
very low volume announcement list at:

http://lists.ubuntu.com/mailman/listinf ... u-announce


Continue [yN] Y
Get:1 Upgrade tool signature [833 B]
Get:2 Upgrade tool [1,277 kB]
Fetched 1,278 kB in 0s (0 B/s)
authenticate 'noble.tar.gz' against 'noble.tar.gz.gpg'
extracting 'noble.tar.gz'
Fetched 46.1 kB in 0s (0 B/s)

Checking package manager
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done

Invalid package information

After updating your package information, the essential package
'ubuntu-minimal' could not be located. This may be because you have
no official mirrors listed in your software sources, or because of
excessive load on the mirror you are using. See /etc/apt/sources.list
for the current list of configured software sources.
In the case of an overloaded mirror, you may want to try the upgrade
again later.


Restoring original system state

Aborting
g package lists... 5%
*** Collecting problem information

The collected information can be sent to the developers to improve the
application. This might take a few minutes.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
=== Command terminated with exit status 1 (Tue Sep 17 11:24:34 2024) ===

Re: Fail : Upgrade from Ubuntu 22.04 to Ubuntu 24.04

Posted: Tue 17. Sep 2024, 11:39
by Alexander
Hello,

1) It seems you did not use the provided guide and upgrade script.
https://www.keyweb.de/en/keyhelp/develo ... -ubuntu-24

2) The error comes from within the Ubuntu application "do-release-upgrade". If you encounter errors there, please inform the Ubuntu developers about it. This is out of scope of KeyHelp.

Re: Fail : Upgrade from Ubuntu 22.04 to Ubuntu 24.04

Posted: Tue 17. Sep 2024, 11:50
by Tony20
Alexander wrote: Tue 17. Sep 2024, 11:39 Hello,

1) It seems you did not use the provided guide and upgrade script.
https://www.keyweb.de/en/keyhelp/develo ... -ubuntu-24

2) The error comes from within the Ubuntu application "do-release-upgrade". If you encounter errors there, please inform the Ubuntu developers about it. This is out of scope of KeyHelp.
Hello, I followed the Upgrade guide


2.)
The program flow is transferred to the Ubuntu application do-release-upgrade. Please follow the instructions of this program. On questions about Should system config files be overwritten? answer with Keep the local version currently installed. After running the application, the system asks for a reboot, perform it.

https://www.keyweb.de/en/keyhelp/develo ... -ubuntu-24

Re: Fail: Upgrade from Ubuntu 22.04 to Ubuntu 24.04

Posted: Tue 17. Sep 2024, 12:05
by Alexander
As it is stated in your post:

Code: Select all

Invalid package information

After updating your package information, the essential package
'ubuntu-minimal' could not be located. This may be because you have
no official mirrors listed in your software sources, or because of
excessive load on the mirror you are using. See /etc/apt/sources.list
for the current list of configured software sources.
In the case of an overloaded mirror, you may want to try the upgrade
again later.
Check the sources list and try to call "do-release-upgrade" again.

Re: Fail: Upgrade from Ubuntu 22.04 to Ubuntu 24.04

Posted: Tue 17. Sep 2024, 13:05
by Tony20
Alexander wrote: Tue 17. Sep 2024, 12:05 As it is stated in your post:

Code: Select all

Invalid package information

After updating your package information, the essential package
'ubuntu-minimal' could not be located. This may be because you have
no official mirrors listed in your software sources, or because of
excessive load on the mirror you are using. See /etc/apt/sources.list
for the current list of configured software sources.
In the case of an overloaded mirror, you may want to try the upgrade
again later.
Check the sources list and try to call "do-release-upgrade" again.
I changed the /etc/apt/sources.list to the official one
deb http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse

it upgraded

After reboot, I am getting this error.

root@panel:~# phpenmod ioncube
root@panel:~# php keyhelp_ubuntu_upgrade_22_to_24.php
PHP Fatal error: The file /root/keyhelp_ubuntu_upgrade_22_to_24.php encoded as type [1/81] cannot be decoded by this version of the ionCube Loader.
in Unknown on line 0

Re: Fail: Upgrade from Ubuntu 22.04 to Ubuntu 24.04

Posted: Tue 17. Sep 2024, 14:43
by Alexander
Okay, now perform this command:

Code: Select all

wget --no-check-certificate https://install.keyhelp.de/scripts/keyhelp_ubuntu_upgrade_22_to_24_php82 -O keyhelp_ubuntu_upgrade_22_to_24.php && php keyhelp_ubuntu_upgrade_22_to_24.php 

Re: Fail: Upgrade from Ubuntu 22.04 to Ubuntu 24.04

Posted: Tue 17. Sep 2024, 15:00
by Tony20
Alexander wrote: Tue 17. Sep 2024, 14:43 Okay, now perform this command:

Code: Select all

wget --no-check-certificate https://install.keyhelp.de/scripts/keyhelp_ubuntu_upgrade_22_to_24_php82 -O keyhelp_ubuntu_upgrade_22_to_24.php && php keyhelp_ubuntu_upgrade_22_to_24.php 


I perform the above command and reboot it.

Other services
SSH Secure shell server Inactive

everything else is running




SSH

* ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/usr/lib/systemd/system/ssh.service; disabled; preset: enabled)
Active: inactive (dead)
TriggeredBy: * ssh.socket
Docs: man:sshd(8)
man:sshd_config(5)

root@panel:~# sudo systemctl restart sshd.service
Failed to restart sshd.service: Unit sshd.service not found.

Re: Fail: Upgrade from Ubuntu 22.04 to Ubuntu 24.04

Posted: Tue 17. Sep 2024, 15:14
by tab-kh
Tried to start it, instead of restarting? It's not running after all.

Re: Fail: Upgrade from Ubuntu 22.04 to Ubuntu 24.04

Posted: Tue 17. Sep 2024, 15:20
by Tony20
tab-kh wrote: Tue 17. Sep 2024, 15:14 Tried to start it, instead of restarting? It's not running after all.

it start with sudo systemctl start ssh,

but when server it reboot, the service ssh is Inactive!

Re: Fail: Upgrade from Ubuntu 22.04 to Ubuntu 24.04

Posted: Tue 17. Sep 2024, 16:08
by Tony20
@tab-kh @Alexander Thanks for the help.


I found this on askubuntu.com
Enabling and disabling sshd at boot via systemd

https://askubuntu.com/questions/978852/ ... ia-systemd


sshd service is originally written as ssh.service and sshd.service is set as alias name. Check out the last line of following output.

arryph@localhost:~$ systemctl cat sshd.service
# /lib/systemd/system/ssh.service
[Unit]
Description=OpenBSD Secure Shell server
After=network.target auditd.service
ConditionPathExists=!/etc/ssh/sshd_not_to_be_run

[Service]
EnvironmentFile=-/etc/default/ssh
ExecStart=/usr/sbin/sshd -D $SSHD_OPTS
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure
RestartPreventExitStatus=255
Type=notify

[Install]
WantedBy=multi-user.target
Alias=sshd.service

Because of this, when ssh.service is enabled, we can refer it as sshd.service. But when you disabled sshd.service and rebooted, ssh.service is no longer loaded and because of this you can't refer it as sshd.service in that condition. You have to refer is as ssh.service instead. so if you run sudo systemctl enable ssh.service, it will enable ssh.service (aliased as sshd.service) successfully.