自定义包可卸载

自定义包可卸载

我有一个自定义包,python-amqplib它依赖于 python >= 2.5。我使用 repoman 通过 Jenkins 推送到我的仓库,它报告构建已成功推送。apt-get update当我运行 时,它会显示apt-cache search python-amqplib

但是,我无法安装它,运行时也没有显示任何内容apt-cache show python-amqplib

以下是我尝试安装时显示的内容:

# apt-get install python-ampqlib
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package python-ampqlib 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 python-ampqlib has no installation candidate

展示内容如下apt-cache policy

# apt-cache policy python-amqplib
python-amqplib:
  Installed: (none)
  Candidate: 1.0.2-4-4
  Version table:
     1.0.2-4-4 0
        500 http://apt01.my-server.com/ mycompany-staging/main Packages
     0.6.1-1 0
        500 http://us.archive.ubuntu.com/ubuntu/ lucid/universe Packages

答案1

从上面的命令来看,似乎有一个帕金森病-量子点拼写不匹配,这只是粘贴错误吗?

是否将 Apt 设置为始终优先使用 lucid?(虽然从 apt-cache 输出来看并非如此...)是否:

apt-get -t mycompany-staging install {python-ampqlib,python-amqplib}

有什么区别?

相关内容