Debian APT 无法安装任何软件包
Debian APT unable to install any package
我 运行在 Dell XPS 15 (9560) 上使用 XFCE4 安装 Debian 9。最近我 运行 遇到了 apt 的麻烦。如果我尝试使用 apt-get install 运行 任何东西,下面总是 return:
william@debian:~$ sudo apt-get install vim
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
vim : Depends: vim-common (= 2:7.4.488-7+deb8u3) but 2:8.0.0197-4+deb9u1 is to be installed
E: Unable to correct problems, you have held broken packages.
我试过运行宁sudo apt-get update
、sudo apt-get upgrade
、sudo apt --fix-broken install
、sudo apt-get clean
等等
其中一些 return 条消息是这样的:
william@debian:~$ sudo apt-get update
Ign:1 http://ftp.us.debian.org/debian jessie InRelease
Hit:2 http://ftp.us.debian.org/debian jessie Release
Reading package lists... Done
william@debian:~$ sudo apt-get install upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package upgrade
william@debian:~$ sudo apt-get install dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package dist-upgrade
请帮忙,非常感谢:)
请更新您的 sources.list 文件......
使用终端并使用权限打开
$ sudo gedit /etc/apt/sources.list
在这里粘贴链接,您可以在互联网上找到它们
或粘贴这些:
deb http://deb.debian.org/debian 伸展主要
deb-src http://deb.debian.org/debian 拉伸主
deb http://deb.debian.org/debian stretch-updates main
deb-src http://deb.debian.org/debian stretch-updates main
deb http://security.debian.org/debian-security/ stretch/updates 主要
deb-src http://security.debian.org/debian-security/ stretch/updates main
谢谢你问我,如果我哪里错了,抱歉
我 运行在 Dell XPS 15 (9560) 上使用 XFCE4 安装 Debian 9。最近我 运行 遇到了 apt 的麻烦。如果我尝试使用 apt-get install 运行 任何东西,下面总是 return:
william@debian:~$ sudo apt-get install vim
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
vim : Depends: vim-common (= 2:7.4.488-7+deb8u3) but 2:8.0.0197-4+deb9u1 is to be installed
E: Unable to correct problems, you have held broken packages.
我试过运行宁sudo apt-get update
、sudo apt-get upgrade
、sudo apt --fix-broken install
、sudo apt-get clean
等等
其中一些 return 条消息是这样的:
william@debian:~$ sudo apt-get update
Ign:1 http://ftp.us.debian.org/debian jessie InRelease
Hit:2 http://ftp.us.debian.org/debian jessie Release
Reading package lists... Done
william@debian:~$ sudo apt-get install upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package upgrade
william@debian:~$ sudo apt-get install dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package dist-upgrade
请帮忙,非常感谢:)
请更新您的 sources.list 文件...... 使用终端并使用权限打开
$ sudo gedit /etc/apt/sources.list
在这里粘贴链接,您可以在互联网上找到它们
或粘贴这些:
deb http://deb.debian.org/debian 伸展主要 deb-src http://deb.debian.org/debian 拉伸主
deb http://deb.debian.org/debian stretch-updates main deb-src http://deb.debian.org/debian stretch-updates main
deb http://security.debian.org/debian-security/ stretch/updates 主要 deb-src http://security.debian.org/debian-security/ stretch/updates main
谢谢你问我,如果我哪里错了,抱歉