Ubuntu 22.04.01 LTS Gnome
Changed python version which resulted in inability to access Terminal and a few other things.
Used a liveUSB and then selected to try ubuntu.
In that terminal entered:
sudo fdisk -l
sudo mount /dev/sda1 /mnt/
sudo mount --bind /proc/ /mnt/proc/
sudo mount --bind /sys/ /mnt/sys/
sudo mount --bind /dev/ /mnt/dev/
sudo cp /etc/resolv.conf /mnt/etc/resolv.conf
sudo chroot /mnt/
That code executed fine. I then wanted to change python3.11 to python 3.10 with
sudo update-alternatives --set python /usr/bin/python3.6
However I get the error listed in the title. Other attemps with various code to change python also raise the same error. Can't find any similar questions on here.
/dev/pts
. – muru Jan 12 '23 at 04:29/dev
bindmount; manual mounting of a devpts is only required when a devtmpfs is directly mounted into the chroot dev. – mcendu Feb 15 '24 at 07:59--rbind
. A regular--bind
mount like in the question wouldn't necessarily result in submounts being reflected. (/dev/pts
is a mount of its own, of typedevpts
,devtmpfs
has nothing to do with it.) – muru Feb 15 '24 at 08:08arch-chroot
to easily get over all the pitfalls. – mcendu Feb 15 '24 at 08:15