Last night I clicked the update button when prompted to switch from Ubuntu 22.04 Jammy (I think!) to Ubuntu 23.04 Lunar. I say I think because I’m not entirely sure what version I was on before. Possibly I’d updated to 22.10… but it doesn’t matter.
The fun comes in when I hit that update, but during the reboot I switched to my dual boot Windows OS as I’d just bought Battlefield 2042, and then spent the next 5 hours (yes, not a typo) downloading the 83gb game.
As such I only rebooted properly this morning, and … oh, the graphics seemed screwed up. Not massively surprising, if you are a regular Ubuntu user, and usually pretty simple to fix:
sudo ubuntu-drivers autoinstall
Code language: Shell Session (shell)
Unfortunately though, that didn’t work:
sudo ubuntu-drivers autoinstall
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
dkms libgl1:i386 libgl1-mesa-dri:i386 libglx-mesa0:i386 libglx0:i386
libnvidia-cfg1-535 libnvidia-common-535 libnvidia-compute-535
libnvidia-decode-535 libnvidia-decode-535:i386 libnvidia-encode-535
libnvidia-encode-535:i386 libnvidia-extra-535 libnvidia-fbc1-535
libnvidia-fbc1-535:i386 libnvidia-gl-535 libnvidia-gl-535:i386
libxcb-glx0:i386 libxnvctrl0 nvidia-compute-utils-535
nvidia-firmware-535-535.113.01 nvidia-kernel-common-535
nvidia-kernel-source-535 nvidia-prime nvidia-settings nvidia-utils-535
screen-resolution-extra xserver-xorg-video-nvidia-535
Suggested packages:
menu
Recommended packages:
libgl1-amber-dri:i386
The following NEW packages will be installed
dkms libgl1:i386 libgl1-mesa-dri:i386 libglx-mesa0:i386 libglx0:i386
libnvidia-cfg1-535 libnvidia-common-535 libnvidia-compute-535
libnvidia-decode-535 libnvidia-decode-535:i386 libnvidia-encode-535
libnvidia-encode-535:i386 libnvidia-extra-535 libnvidia-fbc1-535
libnvidia-fbc1-535:i386 libnvidia-gl-535 libnvidia-gl-535:i386
libxcb-glx0:i386 libxnvctrl0 nvidia-compute-utils-535 nvidia-dkms-535
nvidia-driver-535 nvidia-firmware-535-535.113.01 nvidia-kernel-common-535
nvidia-kernel-source-535 nvidia-prime nvidia-settings nvidia-utils-535
screen-resolution-extra xserver-xorg-video-nvidia-535
0 to upgrade, 30 to newly install, 0 to remove and 0 not to upgrade.
Need to get 333 MB/372 MB of archives.
After this operation, 1,005 MB of additional disk space will be used.
Get:1 http://gb.archive.ubuntu.com/ubuntu lunar-updates/main i386 libgl1-mesa-dri i386 23.0.4-0ubuntu1~23.04.1 [8,494 kB]
Get:2 http://gb.archive.ubuntu.com/ubuntu lunar/main i386 libxcb-glx0 i386 1.15-1 [26.7 kB]
Get:3 http://gb.archive.ubuntu.com/ubuntu lunar-updates/main i386 libglx-mesa0 i386 23.0.4-0ubuntu1~23.04.1 [163 kB]
Ign:4 http://gb.archive.ubuntu.com/ubuntu lunar-updates/restricted amd64 libnvidia-cfg1-535 amd64 535.113.01-0ubuntu0.23.04.3
Get:5 http://gb.archive.ubuntu.com/ubuntu lunar-updates/restricted amd64 libnvidia-common-535 all 535.113.01-0ubuntu0.23.04.3 [15.8 kB]
Ign:6 http://gb.archive.ubuntu.com/ubuntu lunar-updates/restricted amd64 libnvidia-compute-535 amd64 535.113.01-0ubuntu0.23.04.3
Ign:7 http://gb.archive.ubuntu.com/ubuntu lunar-updates/restricted i386 libnvidia-decode-535 i386 535.113.01-0ubuntu0.23.04.3
Ign:8 http://gb.archive.ubuntu.com/ubuntu lunar-updates/restricted amd64 libnvidia-decode-535 amd64 535.113.01-0ubuntu0.23.04.3
Ign:9 http://gb.archive.ubuntu.com/ubuntu lunar-updates/restricted amd64 libnvidia-encode-535 amd64 535.113.01-0ubuntu0.23.04.3
Ign:10 http://gb.archive.ubuntu.com/ubuntu lunar-updates/restricted i386 libnvidia-encode-535 i386 535.113.01-0ubuntu0.23.04.3
Ign:11 http://gb.archive.ubuntu.com/ubuntu lunar-updates/restricted amd64 libnvidia-extra-535 amd64 535.113.01-0ubuntu0.23.04.3
Ign:12 http://gb.archive.ubuntu.com/ubuntu lunar-updates/restricted amd64 libnvidia-fbc1-535 amd64 535.113.01-0ubuntu0.23.04.3
Get:13 http://gb.archive.ubuntu.com/ubuntu lunar/main i386 libglx0 i386 1.6.0-1 [41.7 kB]
Get:14 http://gb.archive.ubuntu.com/ubuntu lunar/main i386 libgl1 i386 1.6.0-1 [96.5 kB]
Ign:15 http://gb.archive.ubuntu.com/ubuntu lunar-updates/restricted i386 libnvidia-fbc1-535 i386 535.113.01-0ubuntu0.23.04.3
Ign:16 http://gb.archive.ubuntu.com/ubuntu lunar-updates/restricted amd64 libnvidia-gl-535 amd64 535.113.01-0ubuntu0.23.04.3
Ign:17 http://gb.archive.ubuntu.com/ubuntu lunar-updates/restricted i386 libnvidia-gl-535 i386 535.113.01-0ubuntu0.23.04.3
Get:18 http://gb.archive.ubuntu.com/ubuntu lunar/main amd64 libxnvctrl0 amd64 510.47.03-0ubuntu1 [11.5 kB]
Ign:19 http://gb.archive.ubuntu.com/ubuntu lunar-updates/restricted amd64 nvidia-compute-utils-535 amd64 535.113.01-0ubuntu0.23.04.3
Ign:20 http://gb.archive.ubuntu.com/ubuntu lunar-updates/restricted amd64 nvidia-kernel-source-535 amd64 535.113.01-0ubuntu0.23.04.3
Ign:21 http://gb.archive.ubuntu.com/ubuntu lunar-updates/restricted amd64 nvidia-kernel-common-535 amd64 535.113.01-0ubuntu0.23.04.3
Err:4 http://security.ubuntu.com/ubuntu lunar-updates/restricted amd64 libnvidia-cfg1-535 amd64 535.113.01-0ubuntu0.23.04.3
404 Not Found [IP: 185.125.190.36 80]
Ign:22 http://gb.archive.ubuntu.com/ubuntu lunar-updates/restricted amd64 nvidia-dkms-535 amd64 535.113.01-0ubuntu0.23.04.3
Ign:23 http://gb.archive.ubuntu.com/ubuntu lunar-updates/restricted amd64 nvidia-utils-535 amd64 535.113.01-0ubuntu0.23.04.3
Ign:24 http://gb.archive.ubuntu.com/ubuntu lunar-updates/restricted amd64 xserver-xorg-video-nvidia-535 amd64 535.113.01-0ubuntu0.23.04.3
Ign:25 http://gb.archive.ubuntu.com/ubuntu lunar-updates/restricted amd64 nvidia-driver-535 amd64 535.113.01-0ubuntu0.23.04.3
Get:26 http://gb.archive.ubuntu.com/ubuntu lunar/main amd64 nvidia-prime all 0.8.17.1 [9,956 B]
Get:27 http://gb.archive.ubuntu.com/ubuntu lunar/main amd64 screen-resolution-extra all 0.18.3 [4,078 B]
Get:28 http://gb.archive.ubuntu.com/ubuntu lunar/main amd64 nvidia-settings amd64 510.47.03-0ubuntu1 [960 kB]
Err:6 http://security.ubuntu.com/ubuntu lunar-updates/restricted amd64 libnvidia-compute-535 amd64 535.113.01-0ubuntu0.23.04.3
404 Not Found [IP: 185.125.190.36 80]
Err:7 http://security.ubuntu.com/ubuntu lunar-updates/restricted i386 libnvidia-decode-535 i386 535.113.01-0ubuntu0.23.04.3
404 Not Found [IP: 185.125.190.36 80]
Err:8 http://security.ubuntu.com/ubuntu lunar-updates/restricted amd64 libnvidia-decode-535 amd64 535.113.01-0ubuntu0.23.04.3
404 Not Found [IP: 185.125.190.36 80]
Err:9 http://security.ubuntu.com/ubuntu lunar-updates/restricted amd64 libnvidia-encode-535 amd64 535.113.01-0ubuntu0.23.04.3
404 Not Found [IP: 185.125.190.36 80]
Err:10 http://security.ubuntu.com/ubuntu lunar-updates/restricted i386 libnvidia-encode-535 i386 535.113.01-0ubuntu0.23.04.3
404 Not Found [IP: 185.125.190.39 80]
Err:11 http://security.ubuntu.com/ubuntu lunar-updates/restricted amd64 libnvidia-extra-535 amd64 535.113.01-0ubuntu0.23.04.3
404 Not Found [IP: 185.125.190.39 80]
Err:12 http://security.ubuntu.com/ubuntu lunar-updates/restricted amd64 libnvidia-fbc1-535 amd64 535.113.01-0ubuntu0.23.04.3
404 Not Found [IP: 185.125.190.39 80]
Err:15 http://security.ubuntu.com/ubuntu lunar-updates/restricted i386 libnvidia-fbc1-535 i386 535.113.01-0ubuntu0.23.04.3
404 Not Found [IP: 185.125.190.39 80]
Err:16 http://security.ubuntu.com/ubuntu lunar-updates/restricted amd64 libnvidia-gl-535 amd64 535.113.01-0ubuntu0.23.04.3
404 Not Found [IP: 185.125.190.39 80]
Err:17 http://security.ubuntu.com/ubuntu lunar-updates/restricted i386 libnvidia-gl-535 i386 535.113.01-0ubuntu0.23.04.3
404 Not Found [IP: 185.125.190.39 80]
Err:19 http://security.ubuntu.com/ubuntu lunar-updates/restricted amd64 nvidia-compute-utils-535 amd64 535.113.01-0ubuntu0.23.04.3
404 Not Found [IP: 185.125.190.39 80]
Err:20 http://security.ubuntu.com/ubuntu lunar-updates/restricted amd64 nvidia-kernel-source-535 amd64 535.113.01-0ubuntu0.23.04.3
404 Not Found [IP: 185.125.190.39 80]
Err:21 http://security.ubuntu.com/ubuntu lunar-updates/restricted amd64 nvidia-kernel-common-535 amd64 535.113.01-0ubuntu0.23.04.3
404 Not Found [IP: 185.125.190.39 80]
Err:22 http://security.ubuntu.com/ubuntu lunar-updates/restricted amd64 nvidia-dkms-535 amd64 535.113.01-0ubuntu0.23.04.3
404 Not Found [IP: 185.125.190.39 80]
Err:23 http://security.ubuntu.com/ubuntu lunar-updates/restricted amd64 nvidia-utils-535 amd64 535.113.01-0ubuntu0.23.04.3
404 Not Found [IP: 185.125.190.39 80]
Err:24 http://security.ubuntu.com/ubuntu lunar-updates/restricted amd64 xserver-xorg-video-nvidia-535 amd64 535.113.01-0ubuntu0.23.04.3
404 Not Found [IP: 185.125.190.39 80]
Err:25 http://security.ubuntu.com/ubuntu lunar-updates/restricted amd64 nvidia-driver-535 amd64 535.113.01-0ubuntu0.23.04.3
404 Not Found [IP: 185.125.190.39 80]
Fetched 9,823 kB in 3s (2,969 kB/s)
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/restricted/n/nvidia-graphics-drivers-535/libnvidia-cfg1-535_535.113.01-0ubuntu0.23.04.3_amd64.deb 404 Not Found [IP: 185.125.190.36 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/restricted/n/nvidia-graphics-drivers-535/libnvidia-compute-535_535.113.01-0ubuntu0.23.04.3_amd64.deb 404 Not Found [IP: 185.125.190.36 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/restricted/n/nvidia-graphics-drivers-535/libnvidia-decode-535_535.113.01-0ubuntu0.23.04.3_i386.deb 404 Not Found [IP: 185.125.190.36 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/restricted/n/nvidia-graphics-drivers-535/libnvidia-decode-535_535.113.01-0ubuntu0.23.04.3_amd64.deb 404 Not Found [IP: 185.125.190.36 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/restricted/n/nvidia-graphics-drivers-535/libnvidia-encode-535_535.113.01-0ubuntu0.23.04.3_amd64.deb 404 Not Found [IP: 185.125.190.36 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/restricted/n/nvidia-graphics-drivers-535/libnvidia-encode-535_535.113.01-0ubuntu0.23.04.3_i386.deb 404 Not Found [IP: 185.125.190.39 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/restricted/n/nvidia-graphics-drivers-535/libnvidia-extra-535_535.113.01-0ubuntu0.23.04.3_amd64.deb 404 Not Found [IP: 185.125.190.39 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/restricted/n/nvidia-graphics-drivers-535/libnvidia-fbc1-535_535.113.01-0ubuntu0.23.04.3_amd64.deb 404 Not Found [IP: 185.125.190.39 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/restricted/n/nvidia-graphics-drivers-535/libnvidia-fbc1-535_535.113.01-0ubuntu0.23.04.3_i386.deb 404 Not Found [IP: 185.125.190.39 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/restricted/n/nvidia-graphics-drivers-535/libnvidia-gl-535_535.113.01-0ubuntu0.23.04.3_amd64.deb 404 Not Found [IP: 185.125.190.39 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/restricted/n/nvidia-graphics-drivers-535/libnvidia-gl-535_535.113.01-0ubuntu0.23.04.3_i386.deb 404 Not Found [IP: 185.125.190.39 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/restricted/n/nvidia-graphics-drivers-535/nvidia-compute-utils-535_535.113.01-0ubuntu0.23.04.3_amd64.deb 404 Not Found [IP: 185.125.190.39 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/restricted/n/nvidia-graphics-drivers-535/nvidia-kernel-source-535_535.113.01-0ubuntu0.23.04.3_amd64.deb 404 Not Found [IP: 185.125.190.39 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/restricted/n/nvidia-graphics-drivers-535/nvidia-kernel-common-535_535.113.01-0ubuntu0.23.04.3_amd64.deb 404 Not Found [IP: 185.125.190.39 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/restricted/n/nvidia-graphics-drivers-535/nvidia-dkms-535_535.113.01-0ubuntu0.23.04.3_amd64.deb 404 Not Found [IP: 185.125.190.39 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/restricted/n/nvidia-graphics-drivers-535/nvidia-utils-535_535.113.01-0ubuntu0.23.04.3_amd64.deb 404 Not Found [IP: 185.125.190.39 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/restricted/n/nvidia-graphics-drivers-535/xserver-xorg-video-nvidia-535_535.113.01-0ubuntu0.23.04.3_amd64.deb 404 Not Found [IP: 185.125.190.39 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/restricted/n/nvidia-graphics-drivers-535/nvidia-driver-535_535.113.01-0ubuntu0.23.04.3_amd64.deb 404 Not Found [IP: 185.125.190.39 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Code language: Shell Session (shell)
After scrolling back through, the obvious issue was the 404:
404 Not Found [IP: 185.125.190.39 80]
Code language: CSS (css)
A closer look shows that it’s all the security.ubuntu.com
calls that were 404.
Maybe the server was down or something, I don’t know.
Lunar Eclipse
I figured that security.ubuntu.com
may be a DNS entry for a load balancer or something, and that hitting it again a few more times might yield some other IP on round robin. It was a bit of a long shot, but worth a punt.
However, this led to a more curious error:
sudo apt update
Ign:1 http://archive.canonical.com/ubuntu lunar InRelease
Err:2 http://archive.canonical.com/ubuntu lunar Release
404 Not Found [IP: 185.125.188.12 80]
Hit:3 http://archive.ubuntu.com/ubuntu lunar InRelease
Hit:4 http://archive.ubuntu.com/ubuntu lunar-security InRelease
Hit:5 http://archive.ubuntu.com/ubuntu lunar-updates InRelease
Hit:6 http://archive.ubuntu.com/ubuntu lunar-backports InRelease
Reading package lists... Done
E: The repository 'http://archive.canonical.com/ubuntu lunar Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Code language: PHP (php)
Now the 404 had occurred on archive.canonical.com
, but only for one result. The others all showed as a hit.
When I fired up the URL in the browser I was left scratching my head:
I was so lost by that one that I ended up checking lunar was the right release name! 😅
lsb_release -c -s
No LSB modules are available.
lunar
Confusing.
That led me to look at /etc/apt/sources.list
, which is the file that tells Ubuntu where to find all the updates:
cat /etc/apt/sources.list
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://gb.archive.ubuntu.com/ubuntu/ lunar main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://gb.archive.ubuntu.com/ubuntu/ lunar-updates main restricted
# deb-src http://gb.archive.ubuntu.com/ubuntu/ groovy-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://gb.archive.ubuntu.com/ubuntu/ lunar universe
deb http://gb.archive.ubuntu.com/ubuntu/ lunar-updates universe
# deb-src http://gb.archive.ubuntu.com/ubuntu/ groovy-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://gb.archive.ubuntu.com/ubuntu/ lunar multiverse
deb http://gb.archive.ubuntu.com/ubuntu/ lunar-updates multiverse
# deb-src http://gb.archive.ubuntu.com/ubuntu/ groovy-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://gb.archive.ubuntu.com/ubuntu/ lunar-backports main restricted universe multiverse
# deb-src http://gb.archive.ubuntu.com/ubuntu/ groovy-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu lunar-security main restricted
# deb-src http://security.ubuntu.com/ubuntu groovy-security main restricted
deb http://security.ubuntu.com/ubuntu lunar-security universe
# deb-src http://security.ubuntu.com/ubuntu groovy-security universe
deb http://security.ubuntu.com/ubuntu lunar-security multiverse
# deb-src http://security.ubuntu.com/ubuntu groovy-security multiverse
# deb https://packages.stripe.dev/stripe-cli-debian-local stable main # disabled on upgrade to jammy
deb http://archive.ubuntu.com/ubuntu jammy main universe
Code language: PHP (php)
Straight away I thought… eughhh.
That file is a mess.
Loads of commented out entries seemingly from back when I first re-installed a year or more ago.
It seemed like a great idea to clean that file out and start again.
There’s two parts to this though. I wanted to take a full back up of the files I was about to delete / modify in case I screwed everything up. Hey, it happens. Way too often.
Taking A Back Up
There are two things to back up:
/etc/apt/sources.list
/etc/apt/sources.list.d
The first is the file above.
The second is the directory containing all the custom PPAs (I think) that I have installed over the years. Frankly I don’t care about any of them… maybe Docker, but even that I think I just use from Ubuntu source now. Maybe not. Maybe that will come back to bite me.
I took a backup of both, anyway. Just a simply copy / paste from the source to another disk.
Hey, call me paranoid.
Cleaning Up
With my back up done, I could then remove the directory and empty the file:
sudo rm -rf <span style="background-color: initial; font-family: inherit; font-size: inherit; text-wrap: wrap; color: inherit;">/etc/apt/sources.list.d</span>
Code language: HTML, XML (xml)
And then vim into the /etc/apt/sources.list
file and delete all the contents:
sudo vim <span style="background-color: initial; font-family: inherit; font-size: inherit; text-wrap: wrap; color: inherit;">/etc/apt/sources.list</span>
# then hold down the 'd' key, or press dG if you're a pro
Code language: PHP (php)
OK, file ‘clean’.
You still have the chance to back out here by pressing esc then typing :q! to exit without saving.
But what to put in this file?
Well, I found a GitHub Repo that explained it:
However, when I looked at the website for the mirros.aliyun.com
site it was in Japanese:
It’s no big deal it being in Japanese other than it implied it would be on a server in Japan – half the world away. Which sounded like it might involve a bit of latency. Ideally something closer to home would be better.
Fortunately Ubuntu has a ton of mirror sites.
You can find a local one there:
The University of Kent sounded like a trustworthy and speedy mirror to use.
Cool, click on the http link and it looks something like this:
So far, so good.
The Fix
The fix is to use a good mirror.
There’s really not much more to it than that. I guess, if you’re unlucky, or very early, you may have stumbled upon a mirror that’s not fully synced.
That is about the only explanation I can think of for why the official Ubuntu mirror site seemed to be missing the lunar
directory. Either that, or a sysadmin was doing something to do that directory at the exact point I was trying to access it. I’m sure I wasn’t the only one affected.
My /etc/apt/sources.list
ultimately ended up like this:
# /etc/apt/sources.list
deb http://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu/ lunar main restricted universe multiverse
deb-src http://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu/ lunar main restricted universe multiverse
deb http://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu/ lunar-security main restricted universe multiverse
deb-src http://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu/ lunar-security main restricted universe multiverse
deb http://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu/ lunar-updates main restricted universe multiverse
deb-src http://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu/ lunar-updates main restricted universe multiverse
deb http://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu/ lunar-backports main restricted universe multiverse
deb-src http://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu/ lunar-backports main restricted universe multiverse
Code language: PHP (php)
Paste that into /etc/apt/sources.list
, then if using vim be sure to esc then type :wq and hit return.
From there, repeat the usual update steps:
sudo apt-get update -y && sudo apt-get upgrade -y && sudo apt-get autoremove -y
Code language: JavaScript (javascript)
Which, for me, then succeeded:
Hit:1 http://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu lunar InRelease
Hit:2 http://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu lunar-security InRelease
Hit:3 http://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu lunar-updates InRelease
Hit:4 http://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu lunar-proposed InRelease
Hit:5 http://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu lunar-backports InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
libnvidia-compute-535:i386
1 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
Need to get 40.3 MB of archives.
After this operation, 328 kB of additional disk space will be used.
Get:1 http://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu lunar-security/restricted i386 libnvidia-compute-535 i386 535.129.03-0ubuntu0.23.04.1 [40.3 MB]
Fetched 40.3 MB in 16s (2,555 kB/s)
(Reading database ... 377186 files and directories currently installed.)
Preparing to unpack .../libnvidia-compute-535_535.129.03-0ubuntu0.23.04.1_i386.deb ...
Unpacking libnvidia-compute-535:i386 (535.129.03-0ubuntu0.23.04.1) over (535.113.01-0ubuntu0.23.04.3) ...
Setting up libnvidia-compute-535:i386 (535.129.03-0ubuntu0.23.04.1) ...
Processing triggers for libc-bin (2.37-0ubuntu2.1) ...
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
➜ apt sudo ubuntu-drivers autoinstall
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
libgl1:i386 libgl1-mesa-dri:i386 libglx-mesa0:i386 libglx0:i386 libnvidia-cfg1-535 libnvidia-common-535 libnvidia-compute-535 libnvidia-decode-535
libnvidia-decode-535:i386 libnvidia-encode-535 libnvidia-encode-535:i386 libnvidia-extra-535 libnvidia-fbc1-535 libnvidia-fbc1-535:i386 libnvidia-gl-535
libnvidia-gl-535:i386 libxcb-glx0:i386 libxnvctrl0 linux-modules-nvidia-535-6.2.0-36-generic linux-objects-nvidia-535-6.2.0-36-generic
linux-signatures-nvidia-6.2.0-36-generic nvidia-compute-utils-535 nvidia-firmware-535-535.129.03 nvidia-kernel-common-535 nvidia-kernel-source-535
nvidia-prime nvidia-settings nvidia-utils-535 screen-resolution-extra xserver-xorg-video-nvidia-535
Recommended packages:
libgl1-amber-dri:i386
The following NEW packages will be installed
libgl1:i386 libgl1-mesa-dri:i386 libglx-mesa0:i386 libglx0:i386 libnvidia-cfg1-535 libnvidia-common-535 libnvidia-compute-535 libnvidia-decode-535
libnvidia-decode-535:i386 libnvidia-encode-535 libnvidia-encode-535:i386 libnvidia-extra-535 libnvidia-fbc1-535 libnvidia-fbc1-535:i386 libnvidia-gl-535
libnvidia-gl-535:i386 libxcb-glx0:i386 libxnvctrl0 linux-modules-nvidia-535-6.2.0-36-generic linux-modules-nvidia-535-generic
linux-objects-nvidia-535-6.2.0-36-generic linux-signatures-nvidia-6.2.0-36-generic nvidia-compute-utils-535 nvidia-driver-535
nvidia-firmware-535-535.129.03 nvidia-kernel-common-535 nvidia-kernel-source-535 nvidia-prime nvidia-settings nvidia-utils-535 screen-resolution-extra
xserver-xorg-video-nvidia-535
0 to upgrade, 32 to newly install, 0 to remove and 0 not to upgrade.
Need to get 420 MB/429 MB of archives.
After this operation, 1,142 MB of additional disk space will be used.
Get:1 http://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu lunar-security/restricted amd64 libnvidia-cfg1-535 amd64 535.129.03-0ubuntu0.23.04.1 [110 kB]
Get:2 http://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu lunar-security/restricted amd64 libnvidia-common-535 all 535.129.03-0ubuntu0.23.04.1 [16.1 kB]
Get:3 http://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu lunar-security/restricted amd64 libnvidia-compute-535 amd64 535.129.03-0ubuntu0.23.04.1 [40.2 MB]
Get:4 http://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu lunar-security/restricted i386 libnvidia-decode-535 i386 535.129.03-0ubuntu0.23.04.1 [2,206 kB]
Get:5 http://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu lunar-security/restricted amd64 libnvidia-decode-535 amd64 535.129.03-0ubuntu0.23.04.1 [1,885 kB]
Get:6 http://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu lunar-security/restricted amd64 libnvidia-encode-535 amd64 535.129.03-0ubuntu0.23.04.1 [97.6 kB]
Get:7 http://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu lunar-security/restricted i386 libnvidia-encode-535 i386 535.129.03-0ubuntu0.23.04.1 [106 kB]
Get:8 http://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu lunar-security/restricted amd64 libnvidia-extra-535 amd64 535.129.03-0ubuntu0.23.04.1 [71.8 kB]
Get:9 http://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu lunar-security/restricted amd64 libnvidia-fbc1-535 amd64 535.129.03-0ubuntu0.23.04.1 [56.3 kB]
Get:10 http://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu lunar-security/restricted i386 libnvidia-fbc1-535 i386 535.129.03-0ubuntu0.23.04.1 [61.5 kB]
Get:11 http://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu lunar-security/restricted amd64 libnvidia-gl-535 amd64 535.129.03-0ubuntu0.23.04.1 [195 MB]
Get:12 http://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu lunar-security/restricted i386 libnvidia-gl-535 i386 535.129.03-0ubuntu0.23.04.1 [35.3 MB]
Get:13 http://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu lunar-security/restricted amd64 linux-signatures-nvidia-6.2.0-36-generic amd64 6.2.0-36.37+1 [27.4 kB]
Get:14 http://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu lunar-security/restricted amd64 linux-objects-nvidia-535-6.2.0-36-generic amd64 6.2.0-36.37+1 [57.3 MB]
Get:15 http://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu lunar-security/restricted amd64 nvidia-firmware-535-535.129.03 amd64 535.129.03-0ubuntu0.23.04.1 [39.5 MB]
Get:16 http://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu lunar-security/restricted amd64 nvidia-kernel-common-535 amd64 535.129.03-0ubuntu0.23.04.1 [209 kB]
Get:17 http://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu lunar-security/restricted amd64 linux-modules-nvidia-535-6.2.0-36-generic amd64 6.2.0-36.37+1 [15.0 kB]
Get:18 http://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu lunar-security/restricted amd64 linux-modules-nvidia-535-generic amd64 6.2.0-36.37+1 [13.3 kB]
Get:19 http://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu lunar-security/restricted amd64 nvidia-compute-utils-535 amd64 535.129.03-0ubuntu0.23.04.1 [123 kB]
Get:20 http://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu lunar-security/restricted amd64 nvidia-kernel-source-535 amd64 535.129.03-0ubuntu0.23.04.1 [45.1 MB]
Get:21 http://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu lunar-security/restricted amd64 nvidia-utils-535 amd64 535.129.03-0ubuntu0.23.04.1 [404 kB]
Get:22 http://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu lunar-security/restricted amd64 xserver-xorg-video-nvidia-535 amd64 535.129.03-0ubuntu0.23.04.1 [1,587 kB]
Get:23 http://www.mirrorservice.org/sites/archive.ubuntu.com/ubuntu lunar-security/restricted amd64 nvidia-driver-535 amd64 535.129.03-0ubuntu0.23.04.1 [486 kB]
Fetched 420 MB in 2min 44s (2,557 kB/s)
Extract templates from packages: 100%
Preconfiguring packages ...
Selecting previously unselected package libgl1-mesa-dri:i386.
(Reading database ... 377186 files and directories currently installed.)
Preparing to unpack .../00-libgl1-mesa-dri_23.0.4-0ubuntu1~23.04.1_i386.deb ...
Unpacking libgl1-mesa-dri:i386 (23.0.4-0ubuntu1~23.04.1) ...
Selecting previously unselected package libxcb-glx0:i386.
Preparing to unpack .../01-libxcb-glx0_1.15-1_i386.deb ...
Unpacking libxcb-glx0:i386 (1.15-1) ...
Selecting previously unselected package libglx-mesa0:i386.
Preparing to unpack .../02-libglx-mesa0_23.0.4-0ubuntu1~23.04.1_i386.deb ...
Unpacking libglx-mesa0:i386 (23.0.4-0ubuntu1~23.04.1) ...
Selecting previously unselected package libnvidia-cfg1-535:amd64.
Preparing to unpack .../03-libnvidia-cfg1-535_535.129.03-0ubuntu0.23.04.1_amd64.deb ...
Unpacking libnvidia-cfg1-535:amd64 (535.129.03-0ubuntu0.23.04.1) ...
Selecting previously unselected package libnvidia-common-535.
Preparing to unpack .../04-libnvidia-common-535_535.129.03-0ubuntu0.23.04.1_all.deb ...
Unpacking libnvidia-common-535 (535.129.03-0ubuntu0.23.04.1) ...
Selecting previously unselected package libnvidia-compute-535:amd64.
Preparing to unpack .../05-libnvidia-compute-535_535.129.03-0ubuntu0.23.04.1_amd64.deb ...
Unpacking libnvidia-compute-535:amd64 (535.129.03-0ubuntu0.23.04.1) ...
Selecting previously unselected package libnvidia-decode-535:i386.
Preparing to unpack .../06-libnvidia-decode-535_535.129.03-0ubuntu0.23.04.1_i386.deb ...
Unpacking libnvidia-decode-535:i386 (535.129.03-0ubuntu0.23.04.1) ...
Selecting previously unselected package libnvidia-decode-535:amd64.
Preparing to unpack .../07-libnvidia-decode-535_535.129.03-0ubuntu0.23.04.1_amd64.deb ...
Unpacking libnvidia-decode-535:amd64 (535.129.03-0ubuntu0.23.04.1) ...
Selecting previously unselected package libnvidia-encode-535:amd64.
Preparing to unpack .../08-libnvidia-encode-535_535.129.03-0ubuntu0.23.04.1_amd64.deb ...
Unpacking libnvidia-encode-535:amd64 (535.129.03-0ubuntu0.23.04.1) ...
Selecting previously unselected package libnvidia-encode-535:i386.
Preparing to unpack .../09-libnvidia-encode-535_535.129.03-0ubuntu0.23.04.1_i386.deb ...
Unpacking libnvidia-encode-535:i386 (535.129.03-0ubuntu0.23.04.1) ...
Selecting previously unselected package libnvidia-extra-535:amd64.
Preparing to unpack .../10-libnvidia-extra-535_535.129.03-0ubuntu0.23.04.1_amd64.deb ...
Unpacking libnvidia-extra-535:amd64 (535.129.03-0ubuntu0.23.04.1) ...
Selecting previously unselected package libnvidia-fbc1-535:amd64.
Preparing to unpack .../11-libnvidia-fbc1-535_535.129.03-0ubuntu0.23.04.1_amd64.deb ...
Unpacking libnvidia-fbc1-535:amd64 (535.129.03-0ubuntu0.23.04.1) ...
Selecting previously unselected package libglx0:i386.
Preparing to unpack .../12-libglx0_1.6.0-1_i386.deb ...
Unpacking libglx0:i386 (1.6.0-1) ...
Selecting previously unselected package libgl1:i386.
Preparing to unpack .../13-libgl1_1.6.0-1_i386.deb ...
Unpacking libgl1:i386 (1.6.0-1) ...
Selecting previously unselected package libnvidia-fbc1-535:i386.
Preparing to unpack .../14-libnvidia-fbc1-535_535.129.03-0ubuntu0.23.04.1_i386.deb ...
Unpacking libnvidia-fbc1-535:i386 (535.129.03-0ubuntu0.23.04.1) ...
Selecting previously unselected package libnvidia-gl-535:i386.
Preparing to unpack .../15-libnvidia-gl-535_535.129.03-0ubuntu0.23.04.1_i386.deb ...
Unpacking libnvidia-gl-535:i386 (535.129.03-0ubuntu0.23.04.1) ...
Selecting previously unselected package libnvidia-gl-535:amd64.
Preparing to unpack .../16-libnvidia-gl-535_535.129.03-0ubuntu0.23.04.1_amd64.deb ...
Unpacking libnvidia-gl-535:amd64 (535.129.03-0ubuntu0.23.04.1) ...
Selecting previously unselected package libxnvctrl0:amd64.
Preparing to unpack .../17-libxnvctrl0_510.47.03-0ubuntu1_amd64.deb ...
Unpacking libxnvctrl0:amd64 (510.47.03-0ubuntu1) ...
Selecting previously unselected package linux-signatures-nvidia-6.2.0-36-generic.
Preparing to unpack .../18-linux-signatures-nvidia-6.2.0-36-generic_6.2.0-36.37+1_amd64.deb ...
Unpacking linux-signatures-nvidia-6.2.0-36-generic (6.2.0-36.37+1) ...
Selecting previously unselected package linux-objects-nvidia-535-6.2.0-36-generic.
Preparing to unpack .../19-linux-objects-nvidia-535-6.2.0-36-generic_6.2.0-36.37+1_amd64.deb ...
Unpacking linux-objects-nvidia-535-6.2.0-36-generic (6.2.0-36.37+1) ...
Selecting previously unselected package nvidia-firmware-535-535.129.03.
Preparing to unpack .../20-nvidia-firmware-535-535.129.03_535.129.03-0ubuntu0.23.04.1_amd64.deb ...
Unpacking nvidia-firmware-535-535.129.03 (535.129.03-0ubuntu0.23.04.1) ...
Selecting previously unselected package nvidia-kernel-common-535.
Preparing to unpack .../21-nvidia-kernel-common-535_535.129.03-0ubuntu0.23.04.1_amd64.deb ...
Unpacking nvidia-kernel-common-535 (535.129.03-0ubuntu0.23.04.1) ...
Selecting previously unselected package linux-modules-nvidia-535-6.2.0-36-generic.
Preparing to unpack .../22-linux-modules-nvidia-535-6.2.0-36-generic_6.2.0-36.37+1_amd64.deb ...
Unpacking linux-modules-nvidia-535-6.2.0-36-generic (6.2.0-36.37+1) ...
Selecting previously unselected package linux-modules-nvidia-535-generic.
Preparing to unpack .../23-linux-modules-nvidia-535-generic_6.2.0-36.37+1_amd64.deb ...
Unpacking linux-modules-nvidia-535-generic (6.2.0-36.37+1) ...
Selecting previously unselected package nvidia-compute-utils-535.
Preparing to unpack .../24-nvidia-compute-utils-535_535.129.03-0ubuntu0.23.04.1_amd64.deb ...
Unpacking nvidia-compute-utils-535 (535.129.03-0ubuntu0.23.04.1) ...
Selecting previously unselected package nvidia-kernel-source-535.
Preparing to unpack .../25-nvidia-kernel-source-535_535.129.03-0ubuntu0.23.04.1_amd64.deb ...
Unpacking nvidia-kernel-source-535 (535.129.03-0ubuntu0.23.04.1) ...
Selecting previously unselected package nvidia-utils-535.
Preparing to unpack .../26-nvidia-utils-535_535.129.03-0ubuntu0.23.04.1_amd64.deb ...
Unpacking nvidia-utils-535 (535.129.03-0ubuntu0.23.04.1) ...
Selecting previously unselected package xserver-xorg-video-nvidia-535.
Preparing to unpack .../27-xserver-xorg-video-nvidia-535_535.129.03-0ubuntu0.23.04.1_amd64.deb ...
Unpacking xserver-xorg-video-nvidia-535 (535.129.03-0ubuntu0.23.04.1) ...
Selecting previously unselected package nvidia-driver-535.
Preparing to unpack .../28-nvidia-driver-535_535.129.03-0ubuntu0.23.04.1_amd64.deb ...
Unpacking nvidia-driver-535 (535.129.03-0ubuntu0.23.04.1) ...
Selecting previously unselected package nvidia-prime.
Preparing to unpack .../29-nvidia-prime_0.8.17.1_all.deb ...
Unpacking nvidia-prime (0.8.17.1) ...
Selecting previously unselected package screen-resolution-extra.
Preparing to unpack .../30-screen-resolution-extra_0.18.3_all.deb ...
Unpacking screen-resolution-extra (0.18.3) ...
Selecting previously unselected package nvidia-settings.
Preparing to unpack .../31-nvidia-settings_510.47.03-0ubuntu1_amd64.deb ...
Unpacking nvidia-settings (510.47.03-0ubuntu1) ...
Setting up nvidia-prime (0.8.17.1) ...
Setting up linux-signatures-nvidia-6.2.0-36-generic (6.2.0-36.37+1) ...
Setting up libxcb-glx0:i386 (1.15-1) ...
Setting up libgl1-mesa-dri:i386 (23.0.4-0ubuntu1~23.04.1) ...
Setting up libnvidia-fbc1-535:amd64 (535.129.03-0ubuntu0.23.04.1) ...
Setting up libnvidia-decode-535:i386 (535.129.03-0ubuntu0.23.04.1) ...
Setting up libxnvctrl0:amd64 (510.47.03-0ubuntu1) ...
Setting up libnvidia-common-535 (535.129.03-0ubuntu0.23.04.1) ...
Setting up libnvidia-extra-535:amd64 (535.129.03-0ubuntu0.23.04.1) ...
Setting up libnvidia-cfg1-535:amd64 (535.129.03-0ubuntu0.23.04.1) ...
Setting up screen-resolution-extra (0.18.3) ...
Setting up nvidia-kernel-source-535 (535.129.03-0ubuntu0.23.04.1) ...
Setting up libnvidia-gl-535:amd64 (535.129.03-0ubuntu0.23.04.1) ...
Setting up libnvidia-gl-535:i386 (535.129.03-0ubuntu0.23.04.1) ...
Setting up nvidia-settings (510.47.03-0ubuntu1) ...
Setting up libnvidia-compute-535:amd64 (535.129.03-0ubuntu0.23.04.1) ...
Setting up nvidia-utils-535 (535.129.03-0ubuntu0.23.04.1) ...
Setting up linux-objects-nvidia-535-6.2.0-36-generic (6.2.0-36.37+1) ...
Setting up nvidia-firmware-535-535.129.03 (535.129.03-0ubuntu0.23.04.1) ...
Setting up nvidia-compute-utils-535 (535.129.03-0ubuntu0.23.04.1) ...
adduser: Warning: The home dir /nonexistent you specified can't be accessed: No such file or directory
Adding system user `nvidia-persistenced' (UID 126) ...
Adding new group `nvidia-persistenced' (GID 131) ...
Adding new user `nvidia-persistenced' (UID 126) with group `nvidia-persistenced' ...
Not creating home directory `/nonexistent'.
Setting up libglx-mesa0:i386 (23.0.4-0ubuntu1~23.04.1) ...
Setting up libglx0:i386 (1.6.0-1) ...
Setting up libnvidia-encode-535:i386 (535.129.03-0ubuntu0.23.04.1) ...
Setting up nvidia-kernel-common-535 (535.129.03-0ubuntu0.23.04.1) ...
update-initramfs: deferring update (trigger activated)
Setting up libnvidia-decode-535:amd64 (535.129.03-0ubuntu0.23.04.1) ...
Setting up libgl1:i386 (1.6.0-1) ...
Setting up xserver-xorg-video-nvidia-535 (535.129.03-0ubuntu0.23.04.1) ...
Setting up linux-modules-nvidia-535-6.2.0-36-generic (6.2.0-36.37+1) ...
linux-image-nvidia-6.2.0-36-generic: constructing .ko files
nvidia-drm.ko: OK
nvidia-modeset.ko: OK
nvidia-peermem.ko: OK
nvidia-uvm.ko: OK
nvidia.ko: OK
Setting up linux-modules-nvidia-535-generic (6.2.0-36.37+1) ...
Setting up libnvidia-encode-535:amd64 (535.129.03-0ubuntu0.23.04.1) ...
Setting up libnvidia-fbc1-535:i386 (535.129.03-0ubuntu0.23.04.1) ...
Setting up nvidia-driver-535 (535.129.03-0ubuntu0.23.04.1) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu5) ...
Processing triggers for initramfs-tools (0.142ubuntu2.2) ...
update-initramfs: Generating /boot/initrd.img-6.2.0-36-generic
I: The initramfs will attempt to resume from /dev/sdf4
I: (UUID=b1abdf40-ee4a-4c01-aa41-f252c6e5c66c)
I: Set the RESUME variable to override this.
Processing triggers for gnome-menus (3.36.0-1.1ubuntu1) ...
Processing triggers for libc-bin (2.37-0ubuntu2.1) ...
Processing triggers for man-db (2.11.2-1) ...
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for linux-image-6.2.0-36-generic (6.2.0-36.37) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.2.0-36-generic
I: The initramfs will attempt to resume from /dev/sdf4
I: (UUID=b1abdf40-ee4a-4c01-aa41-f252c6e5c66c)
I: Set the RESUME variable to override this.
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.2.0-36-generic
Found initrd image: /boot/initrd.img-6.2.0-36-generic
Found linux image: /boot/vmlinuz-6.2.0-35-generic
Found initrd image: /boot/initrd.img-6.2.0-35-generic
Found linux image: /boot/vmlinuz-5.14.15-051415-generic
Found initrd image: /boot/initrd.img-5.14.15-051415-generic
Found memtest86+ 64bit EFI image: /memtest86+x64.efi
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Windows Boot Manager on /dev/sde1@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings ...
done
Code language: PHP (php)
Bosh.
Now reboot.
sudo reboot now
And when it came back up, my graphics issues were resolved.
For now 🙂