软件包‘libpango-1.0-0’没有安装候选项

软件包‘libpango-1.0-0’没有安装候选项

我是 Linux 的新手,最近我大胆地在我的笔记本电脑上只安装了 ubuntu 13.04。没有,我遇到了问题,我想使用以下命令安装 libpango-1.0-0 包:sudo apt-get install libpango-1.0-0 我收到以下错误:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libpango-1.0-0 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libpango-1.0-0' has no installation candidate

我应该怎么办?

答案1

我认为包名称是libpango1.0-0,而不是libpango-1.0-0

验证软件包名称的一个好方法是搜索软件包列表,例如apt-cache search libpango

答案2

问题是包不是libpango-1.0-0但是libpango1.0-0

$ apt-cache policy libpango-1.0-0N: Unable to locate package libpango-1.0-0
N: Couldn't find any package by regex 'libpango-1.0-0'
$ apt-cache policy libpango1.0-0
libpango1.0-0:
  Installed: 1.32.5-0ubuntu1
  Candidate: 1.32.5-0ubuntu1
  Version table:
 *** 1.32.5-0ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ raring/main amd64 Packages
        100 /var/lib/dpkg/status

你可以像这样检查所有以 libpango 开头的软件包及其版本:

apt-cache policy libpango*

相关内容