E: Unable to locate package sudo的解决方法

在用docker容器run ubuntu的时候,想要安装python,遇到了bash: sudo: command not found 的错误。

而又没有/etc/sudoers.d文件,这个就是没有安装sudo命令,于是用sudo apt-get install sudo ,遇到了E: Unable to locate package sudo 的错误。

在 https://blog.csdn.net/xiaogugood/article/details/18400669 该博看到了解决方法,将apt-get更新一下,即apt-get update 命令。

猜你喜欢

转载自blog.csdn.net/ximingren/article/details/79902392