sudo: unable to execute /usr/bin/add-apt-repository: No such file or directory 挂起

时间:2024-04-03 12:56:58

问题描述如下:

sudo: unable to execute /usr/bin/add-apt-repository: No such file or directory 挂起

[email protected]:~$ sudo add-apt-repository ppa:hzwhuang/ss-qt5
[sudo] cumt306 的密码: 
sudo: unable to execute /usr/bin/add-apt-repository: No such file or directory
挂起
[email protected]:~$ ldd /usr/bin/python3
ldd: /usr/bin/python3: 没有那个文件或目录

解决方案:

sudo ln -s /usr/bin/python35_bak /usr/bin/python3
ldd /usr/bin/python3
sudo add-apt-repository ppa:hzwhuang/ss-qt5

sudo: unable to execute /usr/bin/add-apt-repository: No such file or directory 挂起

参考:https://askubuntu.com/questions/1087014/sudo-unable-to-execute-usr-bin-add-apt-repository-no-such-file-or-directory