spl23
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 459
Joined: Fri Dec 26, 2014 11:02 am

STICKY - How to upgrade a Buster image to Bullseye

Mon Nov 08, 2021 10:58 am

First off - we really do not recommend doing this, and we don't support it!

The only recommended way to upgrade to bullseye is to download and flash a clean bullseye image, and transfer your data and applications across. But if you really want to try to upgrade an existing buster image to bullseye, this is a method we have found to work on a clean install of the last released buster image. This does of course not guarantee it will work on your image, which will have all sorts of subtle differences from the clean image as a result of changes made while you used it - but it works for us.

First - and I cannot stress this enough - use dd or the SD Card Copier application to MAKE A BACKUP OF YOUR CARD. There is a non-zero chance that this upgrade will trash your system and leave you with an unbootable card. So don't say we didn't warn you! (Did I mention that we do not recommend doing this...?)

Edit /etc/apt/sources.list, and replace every occurrence of the word "buster" with "bullseye".

Do the same for any .list files in /etc/apt/sources.list.d/

Code: Select all

sudo apt update

Code: Select all

sudo apt install libgcc-8-dev gcc-8-base
This will take a while to run. Answer "yes" to any questions during the install.

Code: Select all

sudo apt full-upgrade
Again, this will take a while, and again, answer "yes" to any questions during the install.

When it completes, edit /boot/config.txt.
Comment out any lines which contain "dtoverlay=vc4-fkms-v3d" by putting a # sign at the start of the line.
At the bottom of the file, in the [all] section, add the line "dtoverlay=vc4-kms-v3d" - note that is "kms", not "fkms".

Now reboot and cross your fingers...

If your system comes back up, it should now be running bullseye. You will probably need to reset any custom display resolution you had before.

As above - we do not support this process; it may work for you, or it may not. If you get it to work, or if you have problems, feel free to use this thread to share your experiences to help each other. Good luck!

User avatar
DougieLawson
Posts: 42288
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK

Re: STICKY - How to upgrade a Buster image to Bullseye

Mon Nov 08, 2021 11:20 am

It's probably best for folks to continue to use RonR's tried and tested script from viewtopic.php?t=317888
That's known to work and does all of the /etc/apt stuff for you.
Languages using left-hand whitespace for syntax are ridiculous

DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.

The use of crystal balls and mind reading is prohibited.

spl23
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 459
Joined: Fri Dec 26, 2014 11:02 am

Re: STICKY - How to upgrade a Buster image to Bullseye

Mon Nov 08, 2021 11:38 am

Unless that script also makes the config changes to switch over to KMS, you will end up with tearing when dragging windows about and other visual nasties. If you do use that script, make sure you also make the changes to /boot/config.txt described in my first post above.

User avatar
DougieLawson
Posts: 42288
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK

Re: STICKY - How to upgrade a Buster image to Bullseye

Mon Nov 08, 2021 11:41 am

spl23 wrote:
Mon Nov 08, 2021 11:38 am
Unless that script also makes the config changes to switch over to KMS, you will end up with tearing when dragging windows about and other visual nasties. If you do use that script, make sure you also make the changes to /boot/config.txt described in my first post above.
Isn't that just for RPi4Bs only (and therefore completely irrelevant to my, mostly headless, RPi3Bs, 3As, 2B, Zeros and 1Bs).
Languages using left-hand whitespace for syntax are ridiculous

DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.

The use of crystal balls and mind reading is prohibited.

spl23
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 459
Joined: Fri Dec 26, 2014 11:02 am

Re: STICKY - How to upgrade a Buster image to Bullseye

Mon Nov 08, 2021 11:46 am

DougieLawson wrote:
Mon Nov 08, 2021 11:41 am
spl23 wrote:
Mon Nov 08, 2021 11:38 am
Unless that script also makes the config changes to switch over to KMS, you will end up with tearing when dragging windows about and other visual nasties. If you do use that script, make sure you also make the changes to /boot/config.txt described in my first post above.
Isn't that just for RPi4Bs only (and therefore completely irrelevant to my, mostly headless, RPi3Bs, 3As, 2B, Zeros and 1Bs).
No, in this release the KMS driver is the default for all models of the Pi.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 31811
Joined: Sat Jul 30, 2011 7:41 pm

Re: STICKY - How to upgrade a Buster image to Bullseye

Mon Nov 08, 2021 11:48 am

DougieLawson wrote:
Mon Nov 08, 2021 11:41 am
spl23 wrote:
Mon Nov 08, 2021 11:38 am
Unless that script also makes the config changes to switch over to KMS, you will end up with tearing when dragging windows about and other visual nasties. If you do use that script, make sure you also make the changes to /boot/config.txt described in my first post above.
Isn't that just for RPi4Bs only (and therefore completely irrelevant to my, mostly headless, RPi3Bs, 3As, 2B, Zeros and 1Bs).
Yes, but you are not the only person reading this thread!!
Principal Software Engineer at Raspberry Pi Ltd.
Working in the Applications Team.

LTolledo
Posts: 6657
Joined: Sat Mar 17, 2018 7:29 am
Location: Anime Heartland

Re: STICKY - How to upgrade a Buster image to Bullseye

Mon Nov 08, 2021 11:54 am

hmmm.... as the "official" RPiOS32 Bullseye has been officially announced....

been contemplating on going this path, or the recommended path....

or should I wait until the dust settles.....?
"Don't come to me with 'issues' for I don't know how to deal with those
Come to me with 'problems' and I'll help you find solutions"

Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"

jbudd
Posts: 2078
Joined: Mon Dec 16, 2013 10:23 am

Re: STICKY - How to upgrade a Buster image to Bullseye

Mon Nov 08, 2021 12:46 pm

I tried it on a Zero 2 with RPiOS Lite and just Node-Red installed.
It took a long time, longer than burning a fresh image and reinstalling Node-Red and my flows.
It required a fair bit of interation so couldn't be run unattended.
And finally, it either didn't boot or didn't connect to wifi.

User avatar
HawaiianPi
Posts: 7529
Joined: Mon Apr 08, 2013 4:53 am
Location: Aloha, Oregon USA

Re: STICKY - How to upgrade a Buster image to Bullseye

Mon Nov 08, 2021 12:47 pm

LTolledo wrote:
Mon Nov 08, 2021 11:54 am
been contemplating on going this path, or the recommended path....
or should I wait until the dust settles.....?
If you decide to go with the recommended path, the 64-bit images are also available.
downloads.raspberrypi.org/raspios_arm64/images/raspios_arm64-2021-11-08/
downloads.raspberrypi.org/raspios_lite_arm64/images/raspios_lite_arm64-2021-11-08/
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups, and where is that annoying music coming from?

nikal
Posts: 34
Joined: Sat Mar 29, 2014 2:51 pm

Re: STICKY - How to upgrade a Buster image to Bullseye

Mon Nov 08, 2021 1:03 pm

Hi!

I'm running the 64bit version on a rpi 4/8G. The apt update gives me an error regarding the debian-security updates/bullseye repo which has no release file and therefore it's by default disabled. Should I override this error somehow or it's OK to leave it as it is ?

Thanks in advace for your reply

aBUGSworstnightmare
Posts: 6005
Joined: Tue Jun 30, 2015 1:35 pm

Re: STICKY - How to upgrade a Buster image to Bullseye

Mon Nov 08, 2021 2:17 pm

spl23 wrote:
Mon Nov 08, 2021 11:46 am
DougieLawson wrote:
Mon Nov 08, 2021 11:41 am
spl23 wrote:
Mon Nov 08, 2021 11:38 am
Unless that script also makes the config changes to switch over to KMS, you will end up with tearing when dragging windows about and other visual nasties. If you do use that script, make sure you also make the changes to /boot/config.txt described in my first post above.
Isn't that just for RPi4Bs only (and therefore completely irrelevant to my, mostly headless, RPi3Bs, 3As, 2B, Zeros and 1Bs).
No, in this release the KMS driver is the default for all models of the Pi.
Off-topic: KMS runs also nicely with 5.15 kernel on a Zero 2 W.

Nice to see the official release! Will start with a fresh image though (instead of attempting to update)

User avatar
GranducatodiToscana
Posts: 16
Joined: Mon Aug 09, 2021 9:07 pm
Location: Toscana

Re: STICKY - How to upgrade a Buster image to Bullseye

Mon Nov 08, 2021 2:36 pm

i've installed my buster on an external ssd. how i can upgrade it to bullseye without lost the settings and the files?
i've got a rpi400.

thank u
Raspberry Pi 400 addicted

ralphrmartin
Posts: 29
Joined: Sat May 06, 2017 3:42 pm

Re: STICKY - How to upgrade a Buster image to Bullseye

Mon Nov 08, 2021 3:36 pm

Just followed the above instructions for a basic headless server running Plex and mpd, and all went well. Thanks!

ralphrmartin
Posts: 29
Joined: Sat May 06, 2017 3:42 pm

Re: STICKY - How to upgrade a Buster image to Bullseye

Mon Nov 08, 2021 5:13 pm

Hmm tried upgrading another server running pihole, dns, and a unifi network controller, and couldn't log into it afterwards or access pihole. At that point I had to revert to a backup as it was a live system.

fik
Posts: 60
Joined: Thu Jan 17, 2013 1:34 pm

Re: STICKY - How to upgrade a Buster image to Bullseye

Mon Nov 08, 2021 5:49 pm

nikal wrote:
Mon Nov 08, 2021 1:03 pm
Hi!

I'm running the 64bit version on a rpi 4/8G. The apt update gives me an error regarding the debian-security updates/bullseye repo which has no release file and therefore it's by default disabled. Should I override this error somehow or it's OK to leave it as it is ?

Thanks in advace for your reply
I've stumbled upon this one as well.

The original line in /etc/apt/sources.list

Code: Select all

deb http://deb.debian.org/debian-security/ buster/updates main contrib non-free
should be changed to

Code: Select all

deb http://security.debian.org/debian-security bullseye-security main contrib non-free

redvli
Posts: 194
Joined: Thu Sep 03, 2020 8:09 am

Re: STICKY - How to upgrade a Buster image to Bullseye

Mon Nov 08, 2021 6:53 pm

ralphrmartin wrote:
Mon Nov 08, 2021 5:13 pm
Hmm tried upgrading another server running pihole, dns, and a unifi network controller, and couldn't log into it afterwards or access pihole. At that point I had to revert to a backup as it was a live system.
On my quite modified RPi4 system, the upgrade went as smooth as a former upgrade of some Debian buster to Debian bullseye system, except that connman got installed and activated while dhcpcd was and is still my main network config tool. As I have bridged eth0 and wlan0 into a br0 (WiFi AP functionality), network access got broken and the upgrade stopped. Luckily I had serial console access, so i could fix/restart the upgrade process.

User avatar
Eirikr70
Posts: 251
Joined: Mon Feb 03, 2020 9:07 pm
Location: Paris, where else ?

Re: STICKY - How to upgrade a Buster image to Bullseye

Mon Nov 08, 2021 7:27 pm

HawaiianPi wrote:
Mon Nov 08, 2021 12:47 pm
If you decide to go with the recommended path, the 64-bit images are also available.
What are the pros and cons of choosing 32 or 64 bits (explained to someone who doesn't speak 0s and 1s - and even hardly english) ?

redvli
Posts: 194
Joined: Thu Sep 03, 2020 8:09 am

Re: STICKY - How to upgrade a Buster image to Bullseye

Mon Nov 08, 2021 7:49 pm

Eirikr70 wrote:
Mon Nov 08, 2021 7:27 pm
What are the pros and cons of choosing 32 or 64 bits (explained to someone who doesn't speak 0s and 1s - and even hardly english) ?
This topic is about upgrading, there are plenty of discussions about 32-bit vs. 64-bit, for example viewtopic.php?t=275372
Another short answer is: If you ask this question, so don't know it, then do not choose a beta OS variant, but take the 32-bit variant.

linuxusr80
Posts: 1
Joined: Mon Nov 08, 2021 7:52 pm

Re: STICKY - How to upgrade a Buster image to Bullseye

Mon Nov 08, 2021 7:56 pm

Please note if you have pihole installed, connman will enable itself on port 53. Disabling connman service resolves. in addition if you have a static ip address, eth0 is renamed and eth0 is disabled. you need to update in you dhcpcs.conf file.

MikeCoder
Posts: 84
Joined: Fri Jan 24, 2020 12:05 am

Re: STICKY - How to upgrade a Buster image to Bullseye

Tue Nov 09, 2021 4:43 am

Hmmm... I tried upgrading. My Pi got to the splash screen, but then the screen went blank, the green light went solid for ~10 seconds, then it went off and only the red light was on and didn't boot. It only booted properly when I used fkms in config.txt.

redvli
Posts: 194
Joined: Thu Sep 03, 2020 8:09 am

Re: STICKY - How to upgrade a Buster image to Bullseye

Tue Nov 09, 2021 7:58 am

MikeCoder wrote:
Tue Nov 09, 2021 4:43 am
Hmmm... I tried upgrading. My Pi got to the splash screen, but then the screen went blank, the green light went solid for ~10 seconds, then it went off and only the red light was on and didn't boot. It only booted properly when I used fkms in config.txt.
Somehow the boot- or startupprocess stalls and you need to connect a serial cable maybe or make sure you have working/reliable ssh access. The graphics stuff can have many surprises. You can add the following lines to the config.txt:

enable_uart=1
uart_2ndstage=1

The latter one is needed for example when you have problems very early in the bootprocess, it also matters if it is a Pi4 or Pi3-

Also a general tip is to examine the fresh Bullseye image, after you have booted with it once. It is just comparing a successful start with a failing one and hopefully you figure out what the problem is.

User avatar
chrisy
Posts: 70
Joined: Sat May 25, 2013 7:34 pm

Re: STICKY - How to upgrade a Buster image to Bullseye

Tue Nov 09, 2021 10:16 am

Upgrade went well on 64-bit, however I did manually need to change the window manager to "mutter".

The only minor issue I've seen so far is that the "Notifications" panel does not appear, and I can't see it in the list to add it.
Does anybody know the name of the package so I can install it manually?

User avatar
Milliways
Posts: 806
Joined: Fri Apr 25, 2014 12:18 am
Location: Sydney, Australia

Re: STICKY - How to upgrade a Buster image to Bullseye

Tue Nov 09, 2021 10:37 am

I had used RonR's script to upgrade for testing on a fresh Buster.

I just did an fresh installation of the release image.

The Fresh install & reinstall apps took considerably less time and effort.

There were a few other differences I noted. WiringPi is missing from fresh install (as expected).

There are still a few lose ends.

dtparam=act_led_trigger=heartbeat didn't work.

ssh keys changed (not sure if the differences significant).

nikal
Posts: 34
Joined: Sat Mar 29, 2014 2:51 pm

Re: STICKY - How to upgrade a Buster image to Bullseye

Tue Nov 09, 2021 11:01 am

fik wrote:
Mon Nov 08, 2021 5:49 pm
nikal wrote:
Mon Nov 08, 2021 1:03 pm
Hi!

I'm running the 64bit version on a rpi 4/8G. The apt update gives me an error regarding the debian-security updates/bullseye repo which has no release file and therefore it's by default disabled. Should I override this error somehow or it's OK to leave it as it is ?

Thanks in advace for your reply
I've stumbled upon this one as well.

The original line in /etc/apt/sources.list

Code: Select all

deb http://deb.debian.org/debian-security/ buster/updates main contrib non-free
should be changed to

Code: Select all

deb http://security.debian.org/debian-security bullseye-security main contrib non-free
Thanks for your reply. In the mean time I deleted the installation (I used it mostly for testing) and I will reinstall the nightly build based on bullseye.

Truth is that I used it to compile Vulkan GPU driver but after switching to bullseye and despite I faced no issues with the compilation, driver didn't load no matter what.

ElDavo
Posts: 4
Joined: Fri Feb 23, 2018 9:11 am

Re: STICKY - How to upgrade a Buster image to Bullseye

Tue Nov 09, 2021 5:40 pm

In case you have no (wired only) network after the update, check if you have this file:

Code: Select all

/etc/systemd/system/dhcpcd.service.d/wait.conf
The content of the file in my case was:

Code: Select all

[Service]
ExecStart=
ExecStart=/usr/lib/dhcpcd5/dhcpcd -q -w
Delete this file to make dhcpcd run again.

Return to “Raspberry Pi OS”