I tried upgrading raspbian from Stretch to Buster using this tutorial:
https://pimylifeup.com/upgrade-raspbian-stretch-to-raspbian-buster/
At the end of step 6 (maybe at 99% of the upgrade), I had a lot of errors.
Now, a couple of commands give me lots of warnings related to regular expressions. For example, when I dot sudo apt update
, I get
W: Invalid regular expression '^linux-image-[a-z0-9]*$' in configuration option 'APT::NeverAutoRemove' will be ignored.
W: Invalid regular expression '^linux-image-[a-z0-9]*-[a-z0-9]*$' in configuration option 'APT::NeverAutoRemove' will be ignored.
I also get 2 dozens of theses kind of messages when opening nano
and other commands :
Erreur dans /usr/share/nano/gentoo.nanorc à la ligne 18 : Mauvaise expr. rationnelle « \$[-0-9@*#?$!] » : Fin d'intervalle invalide
Erreur dans /usr/share/nano/gentoo.nanorc à la ligne 19 : Mauvaise expr. rationnelle « \$\{[#!]?([-@*#?$!]|[0-9]+|[[:alpha:]_][[:alnum:]_]*)(\[([[:digit:]]|@)+\])?(([#%/]|:?[-=?+])[^}]*\}|\[|\}) » : Fin d'intervalle invalide
For those not speaking french, it says something about "bad regular expressions".
I also had a lot of errors about dpkg
. When doing sudo dpkg --configure -a
, 4 packages seemed to cause problem :
gnome-icon-theme
exim4-config
exim4-base
exim4-daemon-light
I did a sudo apt remove --purge
of these four packages. It solved the errors about dpkg, but I still have the errors about regular expressions.
sudo rpi-update
: this installs test versions of kernel and firmware. If anything, that makes the upgrade harder to complete. – Dmitry Grigoryev Dec 03 '19 at 12:40rpi-update
command ? Is there a way to downgrade to the last supported firmware version ? – jaja360 Dec 03 '19 at 15:54LANG=C
before posting them. E.g.LANG=C ls no-file
should give youls: cannot access 'no-file': No such file or directory
. – Ingo Dec 04 '19 at 14:18