Questions tagged «apt-get»

apt-get是高级打包工具(apt)的命令行界面,高级打包工具(apt)负责安装,删除和升级软件包。

1
python2.7-dev Ubuntu 12.04上的unmet依赖项
几个月前我通过PPA在Ubuntu Lucid上安装了python2.7。一切都很顺利,没有问题。昨天,我从lucid升级到Ubuntu Precise,升级进展顺利。现在,我需要安装python2.7-dev并且我得到unment依赖项错误: sudo apt-get install python2.7-dev ... The following packages have unmet dependencies: python2.7-dev : Depends: python2.7 (= 2.7.3-0ubuntu3.2) but 2.7.4-1+lucid1 is to be installed Depends: libpython2.7 (= 2.7.3-0ubuntu3.2) but 2.7.4-1+lucid1 is to be installed E: Unable to correct problems, you have held broken packages. 这显然是由我在lucid上安装的旧python2.7引起的。为了解决这个问题,我想删除python2.7并重新安装它(apt-get remove python2.7),但我意识到它会删除很多软件包并安装python3。所以我没有这样做。我如何摆脱旧的python2.7并安装一个与Precise一起使用的新版本? 请注意,我的PPA都已禁用。

0
无法在Ubuntu上安装openssh-server
我从http://www.ubuntu.com/download/desktop下载了Ubuntu 14.04.3 LTS(64位),现在无法安装openssh-server。当我尝试时会发生以下情况: ubuntu@ubuntu:~$ sudo apt-get install openssh-server Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that ytou have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.