python - 如何在 ubuntu 上更改 python-setuptools 的 apt-cache 版本?

标签 python linux caching ubuntu

运行:

sudo apt-get install python-setuptools

在 Ubuntu 上生成一个错误,看起来 apt 缓存告诉 apt-get 尝试读取远程分发站点上不再存在的旧版本。

查看远程分发站点,我可以看到较新的 .deb 文件,但看不到 0.6.15。

如何更新 apt 缓存版本以指向分发站点上存在的版本号?

完整的错误信息是:

正在读取包列表...完成 构建依赖树
正在读取状态信息...完成 将安装以下新软件包: python-setuptools 0 个已升级,1 个新安装,0 个要删除,0 个未升级。 需要获得 217 kB 的文件。 此操作后,将使用 1,077 kB 的额外磁盘空间。 错误 http://us.archive.ubuntu.com/ubuntu/ natty/main python-setuptools all 0.6.15-1ubuntu1 404 未找到 [IP: 91.189.91.14 80] 无法获取 http://us.archive.ubuntu.com/ubuntu/pool/main/d/distribute/python-setuptools_0.6.15-1ubuntu1_all.deb 404 未找到 [IP: 91.189.91.14 80]

感谢您的帮助。

最佳答案

试运行

sudo apt-get update

使下载成为更新包的列表!

关于python - 如何在 ubuntu 上更改 python-setuptools 的 apt-cache 版本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20153992/

相关文章:

python - 在 Python 中清除所有 lru_cache

python - 遍历 xml 文档

python - python中从协程调用协程

linux - 否定 bash 脚本中的 if 条件

c - telnet 客户端在recv()后没有响应

java - 缓存空间查询

Python/argparse : How to make an argument (i. e. --clear) 不要警告我 "error: too few arguments"?

python - 无法停止导入数据

linux - pthread mutexattr 进程共享内存泄漏

apache - Varnish -仅在后端关闭时才从缓存发送