Saturday, September 30, 2023
-2
rated 0 times [  -2] [ 0]  / answers: 1 / hits: 1759  / 1 Year ago, wed, june 15, 2022, 2:09:05

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.


More From » command-line

 Answers
0

Remove sudo from the commands.


[#80] Thursday, June 16, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rinstracte

Total Points: 221
Total Questions: 114
Total Answers: 120

Location: France
Member since Fri, Jan 28, 2022
2 Years ago
rinstracte questions
Tue, Jan 24, 23, 01:39, 9 Months ago
Wed, Jun 9, 21, 04:34, 2 Years ago
Sun, Apr 17, 22, 11:38, 1 Year ago
Sun, Oct 3, 21, 08:14, 2 Years ago
;