Schorschi
Posts: 245
Joined: Thu Nov 22, 2012 9:38 pm

Raspberry Pi OS Upgrade from Stretch To Buster

Sun Jun 28, 2020 4:43 pm

To upgrade from stretch to buster, is this not the correct steps?

1. Edit source files to reflect buster rather than stretch
2. Execute apt update
3. Execute apt upgrade
4. Execute apt dist-upgrade
5. Reboot
6. apt --purge autoremove

Apparently the above is incomplete, but it sure did update a lot of packages.

After reboot, i check the /etc/os-release file, and it still shows the stretch information?

Code: Select all

# cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
VERSION_CODENAME=stretch
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
And... lsb_release is not right...

Code: Select all

# lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 9.11 (stretch)
Release:        9.11
Codename:       stretch
Last edited by Schorschi on Sun Jun 28, 2020 4:53 pm, edited 1 time in total.

fruitoftheloom
Posts: 24490
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Raspberry Pi OS Upgrade from Stretch To Buster

Sun Jun 28, 2020 4:46 pm

Schorschi wrote:
Sun Jun 28, 2020 4:43 pm
To upgrade from stretch to buster, is this not the correct steps?

1. Edit source files to reflect buster rather than stretch
2. Execute apt update
3. Execute apt dist-upgrade
4. Reboot

Apparently the above is incomplete, but it sure did update a lot of packages.

After reboot, i check the /etc/os-release file, and it still shows the stretch information?

Code: Select all

# cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
VERSION_CODENAME=stretch
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
And... lsb_release is not right...

Code: Select all

# lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 9.11 (stretch)
Release:        9.11
Codename:       stretch

Going from one release to another is not recommended, but read the bottom of the Official Blog for details:

https://www.raspberrypi.org/blog/buster ... -raspbian/
Thinking outside the box is better than burying your head in the sand...

Schorschi
Posts: 245
Joined: Thu Nov 22, 2012 9:38 pm

Re: Raspberry Pi OS Upgrade from Stretch To Buster

Sun Jun 28, 2020 5:10 pm

True, major release to major release is a potential pit fall. But I have one Pi device I cannot take the time to build from scratch right now. Still, this is something that should not result in files not being update correctly. I realize this likely a Debian core issue, but Raspberry Pi foundation or whatever they are called now, has great impact on Debian OS, financially if not literally.

Above said, clearly the base files did not upgrade as I expected...

Code: Select all

# apt-cache policy base-files
base-files:
  Installed: 9.9+rpi1+deb9u11
  Candidate: 9.9+rpi1+deb9u11
  Version table:
 *** 9.9+rpi1+deb9u11 500
        500 http://raspbian.raspberrypi.org/raspbian stretch/main armhf Packages
        100 /var/lib/dpkg/status

RonR
Posts: 1683
Joined: Tue Apr 12, 2016 10:29 pm
Location: US

Re: Raspberry Pi OS Upgrade from Stretch To Buster

Sun Jun 28, 2020 8:12 pm

One thing missing from your list is expanding the BOOT partition to 256 MiB. The Buster files won't fit in the existing Stretch partition.

User avatar
rpdom
Posts: 17709
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Raspberry Pi OS Upgrade from Stretch To Buster

Mon Jun 29, 2020 7:10 am

Schorschi wrote:
Sun Jun 28, 2020 4:43 pm
1. Edit source files to reflect buster rather than stretch
Which source files did you change?

What is the output of apt policy?

It looks like you still have some of the files pointing to stretch.
Unreadable squiggle

User avatar
pi-anazazi
Posts: 829
Joined: Fri Feb 13, 2015 9:22 pm
Location: EU

Re: Raspberry Pi OS Upgrade from Stretch To Buster

Mon Jun 29, 2020 12:20 pm

From the official blog post linked above:
1. In the files /etc/apt/sources.list and /etc/apt/sources.list.d/raspi.list, change every use of the word “stretch” to “buster”.
... I did that with good success in the past...
Kind regards

anazazi

Return to “General discussion”