Check the package repository before the upgrade
1 |
grep ^deb /etc/apt/sources.list |
Check external package repositories before upgrade
Check the files under /etc/apt/sources.list.d
, etc.
1 |
cat /etc/apt/sources.list.d/* |
Upgrade
1 2 3 4 |
sudo apt update sudo apt upgrade sudo apt autoremove sudo apt autoclean |
Next
1 |
sudo do-release-upgrade |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
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' Reading cache Checking package manager Continue running under SSH? This session appears to be running under ssh. It is not recommended to perform a upgrade over ssh currently because in case of failure it is harder to recover. If you continue, an additional ssh daemon will be started at port '1022'. Do you want to continue? Continue [yN] |
y
1 2 3 4 5 6 7 8 9 10 11 |
Starting additional sshd To make recovery in case of failure easier, an additional sshd will be started on port '1022'. If anything goes wrong with the running ssh you can still connect to the additional one. If you run a firewall, you may need to temporarily open this port. As this is potentially dangerous it's not done automatically. You can open the port with e.g.: 'iptables -I INPUT -p tcp --dport 1022 -j ACCEPT' To continue please press [ENTER] |
ENTER
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
Reading package lists... Done Building dependency tree... Done Reading state information... Done Hit http://asi-fs-w.contabo.net/ubuntu jammy InRelease Hit http://asi-fs-w.contabo.net/ubuntu jammy-updates InRelease Hit http://asi-fs-w.contabo.net/ubuntu jammy-backports InRelease Hit http://security.ubuntu.com/ubuntu jammy-security InRelease Hit https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease Fetched 0 B in 0s (0 B/s) Reading package lists... Done Building dependency tree... Done Reading state information... Done Updating repository information No valid mirror found While scanning your repository information no mirror entry for the upgrade was found. This can happen if you run an internal mirror or if the mirror information is out of date. Do you want to rewrite your 'sources.list' file anyway? If you choose 'Yes' here it will update all 'jammy' to 'noble' entries. If you select 'No' the upgrade will cancel. Continue [yN] |
y
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 |
Get:1 http://asi-fs-w.contabo.net/ubuntu noble InRelease [256 kB] Get:2 http://asi-fs-w.contabo.net/ubuntu noble-updates InRelease [126 kB] Get:3 http://asi-fs-w.contabo.net/ubuntu noble-backports InRelease [126 kB] Get:4 http://security.ubuntu.com/ubuntu noble-security InRelease [126 kB] Get:5 http://asi-fs-w.contabo.net/ubuntu noble/main i386 Packages [1,041 kB] Get:6 http://asi-fs-w.contabo.net/ubuntu noble/main amd64 Packages [1,401 kB] Get:7 http://asi-fs-w.contabo.net/ubuntu noble/main Translation-en [513 kB] Get:8 http://asi-fs-w.contabo.net/ubuntu noble/main amd64 c-n-f Metadata [30.5 kB] Get:9 http://asi-fs-w.contabo.net/ubuntu noble/restricted amd64 Packages [93.9 kB] Get:10 http://asi-fs-w.contabo.net/ubuntu noble/restricted i386 Packages [14.7 kB] Get:11 http://asi-fs-w.contabo.net/ubuntu noble/restricted Translation-en [18.7 kB] Get:12 http://asi-fs-w.contabo.net/ubuntu noble/restricted amd64 c-n-f Metadata [416 B] Get:13 http://asi-fs-w.contabo.net/ubuntu noble/universe amd64 Packages [15.0 MB] Get:14 http://security.ubuntu.com/ubuntu noble-security/main i386 Packages [158 kB] Get:15 https://ppa.launchpadcontent.net/ondrej/php/ubuntu noble InRelease [24.4 kB] Get:16 http://security.ubuntu.com/ubuntu noble-security/main amd64 Packages [377 kB] Get:17 http://asi-fs-w.contabo.net/ubuntu noble/universe i386 Packages [8,514 kB] Get:18 http://security.ubuntu.com/ubuntu noble-security/main Translation-en [81.4 kB] Get:19 http://security.ubuntu.com/ubuntu noble-security/main amd64 c-n-f Metadata [4,516 B] Get:20 http://security.ubuntu.com/ubuntu noble-security/restricted i386 Packages [13.7 kB] Get:21 http://security.ubuntu.com/ubuntu noble-security/restricted amd64 Packages [353 kB] Get:22 https://ppa.launchpadcontent.net/ondrej/php/ubuntu noble/main i386 Packages [18.0 kB] Get:23 http://security.ubuntu.com/ubuntu noble-security/restricted Translation-en [68.1 kB] Get:24 http://security.ubuntu.com/ubuntu noble-security/restricted amd64 c-n-f Metadata [428 B] Get:25 http://security.ubuntu.com/ubuntu noble-security/universe i386 Packages [104 kB] Get:26 http://security.ubuntu.com/ubuntu noble-security/universe amd64 Packages [269 kB] Get:27 http://security.ubuntu.com/ubuntu noble-security/universe Translation-en [113 kB] Get:28 http://security.ubuntu.com/ubuntu noble-security/universe amd64 c-n-f Metadata [10.1 kB] Get:29 http://security.ubuntu.com/ubuntu noble-security/multiverse i386 Packages [2,392 B] Get:30 http://security.ubuntu.com/ubuntu noble-security/multiverse amd64 Packages [10.9 kB] Get:31 http://security.ubuntu.com/ubuntu noble-security/multiverse Translation-en [2,808 B] Get:32 http://asi-fs-w.contabo.net/ubuntu noble/universe Translation-en [5,982 kB] Get:33 https://ppa.launchpadcontent.net/ondrej/php/ubuntu noble/main amd64 Packages [119 kB] Get:34 http://security.ubuntu.com/ubuntu noble-security/multiverse amd64 c-n-f Metadata [344 B] Get:35 http://asi-fs-w.contabo.net/ubuntu noble/universe amd64 c-n-f Metadata [301 kB] Get:36 http://asi-fs-w.contabo.net/ubuntu noble/multiverse amd64 Packages [269 kB] Get:37 http://asi-fs-w.contabo.net/ubuntu noble/multiverse i386 Packages [126 kB] Get:38 http://asi-fs-w.contabo.net/ubuntu noble/multiverse Translation-en [118 kB] Get:39 http://asi-fs-w.contabo.net/ubuntu noble/multiverse amd64 c-n-f Metadata [8,328 B] Get:40 http://asi-fs-w.contabo.net/ubuntu noble-updates/main i386 Packages [277 kB] Get:41 http://asi-fs-w.contabo.net/ubuntu noble-updates/main amd64 Packages [530 kB] Get:42 http://asi-fs-w.contabo.net/ubuntu noble-updates/main Translation-en [128 kB] Get:43 http://asi-fs-w.contabo.net/ubuntu noble-updates/main amd64 c-n-f Metadata [8,548 B] Get:44 http://asi-fs-w.contabo.net/ubuntu noble-updates/restricted amd64 Packages [353 kB] Get:45 http://asi-fs-w.contabo.net/ubuntu noble-updates/restricted i386 Packages [13.7 kB] Get:46 http://asi-fs-w.contabo.net/ubuntu noble-updates/restricted Translation-en [68.1 kB] Get:47 http://asi-fs-w.contabo.net/ubuntu noble-updates/restricted amd64 c-n-f Metadata [424 B] Get:48 http://asi-fs-w.contabo.net/ubuntu noble-updates/universe amd64 Packages [373 kB] Get:49 http://asi-fs-w.contabo.net/ubuntu noble-updates/universe i386 Packages [162 kB] Get:50 http://asi-fs-w.contabo.net/ubuntu noble-updates/universe Translation-en [153 kB] Get:51 http://asi-fs-w.contabo.net/ubuntu noble-updates/universe amd64 c-n-f Metadata [14.6 kB] Get:52 http://asi-fs-w.contabo.net/ubuntu noble-updates/multiverse i386 Packages [2,392 B] Get:53 http://asi-fs-w.contabo.net/ubuntu noble-updates/multiverse amd64 Packages [14.4 kB] Get:54 http://asi-fs-w.contabo.net/ubuntu noble-updates/multiverse Translation-en [3,608 B] Get:55 http://asi-fs-w.contabo.net/ubuntu noble-updates/multiverse amd64 c-n-f Metadata [532 B] Get:56 http://asi-fs-w.contabo.net/ubuntu noble-backports/main amd64 c-n-f Metadata [112 B] Get:57 http://asi-fs-w.contabo.net/ubuntu noble-backports/restricted amd64 c-n-f Metadata [116 B] Get:58 http://asi-fs-w.contabo.net/ubuntu noble-backports/universe i386 Packages [5,644 B] Get:59 http://asi-fs-w.contabo.net/ubuntu noble-backports/universe amd64 Packages [10.6 kB] Get:60 http://asi-fs-w.contabo.net/ubuntu noble-backports/universe Translation-en [10.8 kB] Get:61 http://asi-fs-w.contabo.net/ubuntu noble-backports/universe amd64 c-n-f Metadata [1,104 B] Get:62 http://asi-fs-w.contabo.net/ubuntu noble-backports/multiverse amd64 c-n-f Metadata [116 B] Get:63 https://ppa.launchpadcontent.net/ondrej/php/ubuntu noble/main Translation-en [37.3 kB] Fetched 38.0 MB in 0s (0 B/s) Checking package manager Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating the changes Calculating the changes No candidate ver: linux-image-5.15.0-100-generic No candidate ver: linux-image-5.15.0-102-generic No candidate ver: linux-image-5.15.0-106-generic No candidate ver: linux-image-5.15.0-107-generic No candidate ver: linux-image-5.15.0-112-generic No candidate ver: linux-image-5.15.0-113-generic No candidate ver: linux-image-5.15.0-119-generic No candidate ver: linux-image-5.15.0-121-generic No candidate ver: linux-image-5.15.0-25-generic No candidate ver: linux-image-5.15.0-56-generic No candidate ver: linux-image-5.15.0-58-generic No candidate ver: linux-image-5.15.0-60-generic No candidate ver: linux-image-5.15.0-67-generic No candidate ver: linux-image-5.15.0-70-generic No candidate ver: linux-image-5.15.0-72-generic No candidate ver: linux-image-5.15.0-86-generic No candidate ver: linux-image-5.15.0-94-generic No candidate ver: linux-image-5.4.0-105-generic No candidate ver: linux-image-5.4.0-62-generic No candidate ver: linux-modules-5.15.0-100-generic No candidate ver: linux-modules-5.15.0-102-generic No candidate ver: linux-modules-5.15.0-106-generic No candidate ver: linux-modules-5.15.0-107-generic No candidate ver: linux-modules-5.15.0-112-generic No candidate ver: linux-modules-5.15.0-113-generic No candidate ver: linux-modules-5.15.0-119-generic No candidate ver: linux-modules-5.15.0-121-generic No candidate ver: linux-modules-5.15.0-25-generic No candidate ver: linux-modules-5.15.0-56-generic No candidate ver: linux-modules-5.15.0-58-generic No candidate ver: linux-modules-5.15.0-60-generic No candidate ver: linux-modules-5.15.0-67-generic No candidate ver: linux-modules-5.15.0-70-generic No candidate ver: linux-modules-5.15.0-72-generic No candidate ver: linux-modules-5.15.0-86-generic No candidate ver: linux-modules-5.15.0-94-generic No candidate ver: linux-modules-5.4.0-105-generic No candidate ver: linux-modules-5.4.0-62-generic No candidate ver: linux-modules-extra-5.15.0-100-generic No candidate ver: linux-modules-extra-5.15.0-102-generic No candidate ver: linux-modules-extra-5.15.0-106-generic No candidate ver: linux-modules-extra-5.15.0-107-generic No candidate ver: linux-modules-extra-5.15.0-112-generic No candidate ver: linux-modules-extra-5.15.0-113-generic No candidate ver: linux-modules-extra-5.15.0-119-generic No candidate ver: linux-modules-extra-5.15.0-121-generic No candidate ver: linux-modules-extra-5.15.0-25-generic No candidate ver: linux-modules-extra-5.15.0-56-generic No candidate ver: linux-modules-extra-5.15.0-58-generic No candidate ver: linux-modules-extra-5.15.0-60-generic No candidate ver: linux-modules-extra-5.15.0-67-generic No candidate ver: linux-modules-extra-5.15.0-70-generic No candidate ver: linux-modules-extra-5.15.0-72-generic No candidate ver: linux-modules-extra-5.15.0-86-generic No candidate ver: linux-modules-extra-5.15.0-94-generic No candidate ver: linux-modules-extra-5.4.0-105-generic No candidate ver: linux-modules-extra-5.4.0-62-generic No candidate ver: linux-image-5.15.0-100-generic No candidate ver: linux-image-5.15.0-102-generic No candidate ver: linux-image-5.15.0-106-generic No candidate ver: linux-image-5.15.0-107-generic No candidate ver: linux-image-5.15.0-112-generic No candidate ver: linux-image-5.15.0-113-generic No candidate ver: linux-image-5.15.0-119-generic No candidate ver: linux-image-5.15.0-121-generic No candidate ver: linux-image-5.15.0-25-generic No candidate ver: linux-image-5.15.0-56-generic No candidate ver: linux-image-5.15.0-58-generic No candidate ver: linux-image-5.15.0-60-generic No candidate ver: linux-image-5.15.0-67-generic No candidate ver: linux-image-5.15.0-70-generic No candidate ver: linux-image-5.15.0-72-generic No candidate ver: linux-image-5.15.0-86-generic No candidate ver: linux-image-5.15.0-94-generic No candidate ver: linux-image-5.4.0-105-generic No candidate ver: linux-image-5.4.0-62-generic No candidate ver: linux-modules-5.15.0-100-generic No candidate ver: linux-modules-5.15.0-102-generic No candidate ver: linux-modules-5.15.0-106-generic No candidate ver: linux-modules-5.15.0-107-generic No candidate ver: linux-modules-5.15.0-112-generic No candidate ver: linux-modules-5.15.0-113-generic No candidate ver: linux-modules-5.15.0-119-generic No candidate ver: linux-modules-5.15.0-121-generic No candidate ver: linux-modules-5.15.0-25-generic No candidate ver: linux-modules-5.15.0-56-generic No candidate ver: linux-modules-5.15.0-58-generic No candidate ver: linux-modules-5.15.0-60-generic No candidate ver: linux-modules-5.15.0-67-generic No candidate ver: linux-modules-5.15.0-70-generic No candidate ver: linux-modules-5.15.0-72-generic No candidate ver: linux-modules-5.15.0-86-generic No candidate ver: linux-modules-5.15.0-94-generic No candidate ver: linux-modules-5.4.0-105-generic No candidate ver: linux-modules-5.4.0-62-generic No candidate ver: linux-modules-extra-5.15.0-100-generic No candidate ver: linux-modules-extra-5.15.0-102-generic No candidate ver: linux-modules-extra-5.15.0-106-generic No candidate ver: linux-modules-extra-5.15.0-107-generic No candidate ver: linux-modules-extra-5.15.0-112-generic No candidate ver: linux-modules-extra-5.15.0-113-generic No candidate ver: linux-modules-extra-5.15.0-119-generic No candidate ver: linux-modules-extra-5.15.0-121-generic No candidate ver: linux-modules-extra-5.15.0-25-generic No candidate ver: linux-modules-extra-5.15.0-56-generic No candidate ver: linux-modules-extra-5.15.0-58-generic No candidate ver: linux-modules-extra-5.15.0-60-generic No candidate ver: linux-modules-extra-5.15.0-67-generic No candidate ver: linux-modules-extra-5.15.0-70-generic No candidate ver: linux-modules-extra-5.15.0-72-generic No candidate ver: linux-modules-extra-5.15.0-86-generic No candidate ver: linux-modules-extra-5.15.0-94-generic No candidate ver: linux-modules-extra-5.4.0-105-generic No candidate ver: linux-modules-extra-5.4.0-62-generic Do you want to start the upgrade? 2 installed packages are no longer supported by Canonical. You can still get support from the community. 43 packages are going to be removed. 160 new packages are going to be installed. 576 packages are going to be upgraded. You have to download a total of 975 M. This download will take about 3 minutes with a 40Mbit connection and about 26 minutes with a 5Mbit connection. Fetching and installing the upgrade can take several hours. Once the download has finished, the process cannot be canceled. Continue [yN] Details [d] |
y
1 2 3 4 5 6 7 8 9 10 |
Configuration file '/etc/sysctl.conf' ==> Modified (by you or by a script) since installation. ==> Package distributor has shipped an updated version. What would you like to do about it ? Your options are: Y or I : install the package maintainer's version N or O : keep your currently-installed version D : show the differences between the versions Z : start a shell to examine the situation The default action is to keep your current version. *** sysctl.conf (Y/I/N/O/D/Z) [default=N] ? |
Enter n
to continue as /etc/sysctl.conf
uses the edited content.
What to do with the configuration file sshd_config?
Select keep the local version currently installed
to use the current configuration as is.
1 2 3 4 5 6 7 8 9 10 |
Configuration file '/etc/apache2/sites-available/default-ssl.conf' ==> Modified (by you or by a script) since installation. ==> Package distributor has shipped an updated version. What would you like to do about it ? Your options are: Y or I : install the package maintainer's version N or O : keep your currently-installed version D : show the differences between the versions Z : start a shell to examine the situation The default action is to keep your current version. *** default-ssl.conf (Y/I/N/O/D/Z) [default=N] ? |
I want to use the edited version (keep your currently-installed version), so enter n and continue.
When the Configuring grub-pc dialog box appears, select Keep the currently installed local version
and OK
to continue.
1 2 3 4 5 6 7 8 9 |
Searching for obsolete software Reading state information... Done Remove obsolete packages? 56 packages are going to be removed. Continue [yN] Details [d] |
y
1 2 3 4 5 6 7 8 |
System upgrade is complete. Restart required To finish the upgrade, a restart is required. If you select 'y' the system will be restarted. Continue [yN] |
Enter y
to restart.
Log in and if you see the following display, you are OK.
Welcome to Ubuntu 24.04.1 LTS (GNU/Linux 6.8.0-45-generic x86_64)
コメント