{"id":2617,"date":"2022-11-14T07:05:21","date_gmt":"2022-11-14T01:35:21","guid":{"rendered":"https:\/\/www.mka.in\/wp\/?p=2617"},"modified":"2022-11-14T08:19:24","modified_gmt":"2022-11-14T02:49:24","slug":"raspbian-distro-upgrade","status":"publish","type":"post","link":"https:\/\/www.mka.in\/wp\/raspbian-distro-upgrade\/","title":{"rendered":"Raspbian distro upgrade"},"content":{"rendered":"\n<p>My Raspberry pi boards are running on &#8220;buster&#8221; and now since &#8220;bullseye&#8221; is out, I thought to update them. While doing this, I thought to capture steps to help others. Here are the steps.<\/p>\n\n\n\n<p>First update repositories<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>manish@finch:~ $ sudo apt update\n\nGet:1 http:\/\/raspbian.raspberrypi.org\/raspbian buster InRelease &#91;15.0 kB]                          \nHit:2 http:\/\/archive.raspberrypi.org\/debian buster InRelease                                       \nFetched 15.0 kB in 6s (2,366 B\/s)                                                                                                                    \nReading package lists... Done\nBuilding dependency tree       \nReading state information... Done\nAll packages are up to date.\n\nmanish@finch:~ $ <\/code><\/pre>\n\n\n\n<p>Now run full upgrade command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>manish@finch:~ $ sudo apt dist-upgrade -y\n\nReading package lists... Done\nBuilding dependency tree       <\/code><\/pre>\n\n\n\n<p>Update raspberry pi firmware<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>manish@finch:~ $ sudo rpi-update\n\n *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom\n *** Performing self-update<\/code><\/pre>\n\n\n\n<p>Next edit source.list at \/etc\/apt\/sources.list to change distro from &#8220;buster&#8221; to &#8220;bullseye&#8221;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>manish@finch:~ $ cat \/etc\/apt\/sources.list\n\n#deb http:\/\/raspbian.raspberrypi.org\/raspbian\/ buster main contrib non-free rpi\ndeb http:\/\/raspbian.raspberrypi.org\/raspbian\/ bullseye main contrib non-free rpi<\/code><\/pre>\n\n\n\n<p>Update bullseye repositories<\/p>\n\n\n\n<p> <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>manish@finch:~ $ sudo apt update\n\nGet:1 http:\/\/raspbian.raspberrypi.org\/raspbian bullseye InRelease &#91;15.0 kB]\nHit:2 http:\/\/archive.raspberrypi.org\/debian buster InRelease\nGet:3 http:\/\/raspbian.raspberrypi.org\/raspbian bullseye\/main armhf Packages &#91;13.2 MB]\nGet:4 http:\/\/raspbian.raspberrypi.org\/raspbian bullseye\/contrib armhf Packages &#91;60.2 kB]<\/code><\/pre>\n\n\n\n<p>Finally run distro upgrade wrt to &#8220;bullseye&#8221; repositories <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>manish@finch:~ $ sudo apt dist-upgrade\n\nReading package lists... Done\nBuilding dependency tree       \nReading state information... Done\nCalculating upgrade... Error!\nSome packages could not be installed. This may mean that you have\nrequested an impossible situation or if you are using the unstable\ndistribution that some required packages have not yet been created\nor been moved out of Incoming.\nThe following information may help to resolve the situation:\n\nThe following packages have unmet dependencies:\n libc6-dev : Breaks: libgcc-8-dev (&lt; 8.4.0-2~) but 8.3.0-6+rpi1 is to be installed\nE: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.<\/code><\/pre>\n\n\n\n<p>I encountered above error during upgrade and then found a helpful thread at https:\/\/unix.stackexchange.com\/questions\/592657\/full-upgrade-to-debian-testing-fails-due-to-libc6-dev-breaks-libgcc-8-dev. Following this, I executed <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>manish@finch:~ $ sudo apt install gcc-8-base\n\nReading package lists... Done\nBuilding dependency tree       \nReading state information... Done<\/code><\/pre>\n\n\n\n<p>Now again try dist-upgrade<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>manish@finch:~ $ sudo apt dist-upgrade\n \nReading package lists... Done\nBuilding dependency tree       \nReading state information... Done\nCalculating upgrade... Done<\/code><\/pre>\n\n\n\n<p>Once upgrade is complete, verify debian version.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>manish@finch:~ $ cat \/etc\/debian_version \n11.5<\/code><\/pre>\n\n\n\n<p>At last run<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt autoclean<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>My Raspberry pi boards are running on &#8220;buster&#8221; and now since &#8220;bullseye&#8221; is out, I thought to update them. While doing this, I thought to capture steps to help others. Here are the steps. First update repositories Now run full upgrade command Update raspberry pi firmware Next edit source.list at \/etc\/apt\/sources.list to change distro from [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2625,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-2617","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech-bytes"],"_links":{"self":[{"href":"https:\/\/www.mka.in\/wp\/wp-json\/wp\/v2\/posts\/2617","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mka.in\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mka.in\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mka.in\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mka.in\/wp\/wp-json\/wp\/v2\/comments?post=2617"}],"version-history":[{"count":5,"href":"https:\/\/www.mka.in\/wp\/wp-json\/wp\/v2\/posts\/2617\/revisions"}],"predecessor-version":[{"id":2629,"href":"https:\/\/www.mka.in\/wp\/wp-json\/wp\/v2\/posts\/2617\/revisions\/2629"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.mka.in\/wp\/wp-json\/wp\/v2\/media\/2625"}],"wp:attachment":[{"href":"https:\/\/www.mka.in\/wp\/wp-json\/wp\/v2\/media?parent=2617"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mka.in\/wp\/wp-json\/wp\/v2\/categories?post=2617"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mka.in\/wp\/wp-json\/wp\/v2\/tags?post=2617"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}