麒麟系统sudo: apt-get: command not found
时间: 2023-11-16 07:01:29 浏览: 519
麒麟系统中出现"sudo: apt-get: command not found"的错误提示,可能是由于系统中没有安装apt-get命令所致。apt-get是Debian及其衍生系统中的一个包管理器,用于从软件源中安装、升级、卸载软件包。您可以尝试以下方法解决该问题:
1.安装apt-get命令:
sudo apt-get update
sudo apt-get install apt-get
2.安装xinetd和telnetd:
sudo apt-get update
sudo apt-get install xinetd telnetd
3.下载apt包并手动安装:
wget http://security.ubuntu.com/ubuntu/pool/main/a/apt/apt_1.9.3_amd64.deb
sudo dpkg -i apt_1.9.3_amd64.deb
相关问题
[root@iZ0jlcgjrcxfsxz0tlpnqfZ ffmpg]# sudo apt-get install sudo apt-get sudo: apt-get: command not found [root@iZ0jlcgjrcxfsxz0tlpnqfZ ffmpg]# sudo apt-get install sudo: apt-get: command not found [root@iZ0jlcgjrcxfsxz0tlpnqfZ ffmpg]# sudo apt-get sudo: apt-get: command not found [root@iZ0jlcgjrcxfsxz0tlpnqfZ ffmpg]# sudo apt-get update sudo: apt-get: command not found [root@iZ0jlcgjrcxfsxz0tlpnqfZ ffmpg]# sudo apt-get install software-properties-common sudo: apt-get: command not found [root@iZ0jlcgjrcxfsxz0tlpnqfZ ffmpg]# sudo add-apt-repository ppa:mc3man/mpv-tests sudo: add-apt-repository: command not found [root@iZ0jlcgjrcxfsxz0tlpnqfZ ffmpg]# sudo apt-get update sudo: apt-get: command not found [root@iZ0jlcgjrcxfsxz0tlpnqfZ ffmpg]# sudo apt-get install mpv sudo: apt-get: command not found你的方法不行
非常抱歉,我之前的回答有误,CentOS 并不支持 apt-get 命令。在 CentOS 中,你可以使用 yum 命令来安装软件包。
要安装 mpv 播放器,可以使用以下命令:
```
sudo yum install epel-release
sudo yum install mpv
```
第一条命令是安装 EPEL 软件源,第二条命令是安装 mpv 播放器。请注意,你需要具有 sudo 权限才能运行这些命令。
sudo: apt-get: command not found
As an AI language model, I do not have access to your system and cannot provide specific solutions. However, the error message "sudo: apt-get: command not found" usually indicates that the "apt-get" command is not installed on your system or is not in your system's path.
If you are using a Linux-based operating system, you can try installing "apt-get" by running the following command:
```
sudo apt-get install apt
```
If you are using a different operating system, you can try searching for the equivalent package manager or installation method for your system.
阅读全文