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

问题描述如下:

cumt306@cumt306:~$ sudo add-apt-repository ppa:hzwhuang/ss-qt5
[sudo] cumt306 的密码: 
sudo: unable to execute /usr/bin/add-apt-repository: No such file or directory
挂起
cumt306@cumt306:~$ 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 挂起_第1张图片

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

 

你可能感兴趣的:(Ubuntu)