![Synaptic Package Manager 的发布配置问题](https://linux22.com/image/1121252/Synaptic%20Package%20Manager%20%E7%9A%84%E5%8F%91%E5%B8%83%E9%85%8D%E7%BD%AE%E9%97%AE%E9%A2%98.png)
我最近将我的 Ubuntu 10 (lucid) 更新到了 14 (trusty)。现在突触包管理器拒绝开始说:
E: The value 'lucid' is invalid for APT::Default-Release as such a release is not available in the sources
E: _cache->open() failed, please report.
我试图在中找到这样的参考/etc
,/var
我的主文件夹,但发现没有一个可以解决问题。
有谁可以帮忙吗?
编辑:我想澄清的是,我已经搜索了最明显的配置文件,/etc/apt/source.list
例如Ubuntu 软件中心工作正常(即使基于 apt 也是如此)。
无论如何,这里是 apt source.list:
# deb cdrom:[Ubuntu-GNOME 14.04 LTS _Trusty Tahr_ - Release amd64 (20140416.2)]/ trusty main multiverse restricted universe
deb-src http://archive.ubuntu.com/ubuntu trusty main multiverse restricted universe #Added by software-properties
deb http://ftp.free.org/mirrors/archive.ubuntu.com/ubuntu/ trusty restricted main
deb-src http://ftp.free.org/mirrors/archive.ubuntu.com/ubuntu/ trusty multiverse universe restricted main #Added by software-properties
deb http://ftp.free.org/mirrors/archive.ubuntu.com/ubuntu/ trusty universe
deb http://ftp.free.org/mirrors/archive.ubuntu.com/ubuntu/ trusty multiverse
deb http://extras.ubuntu.com/ubuntu trusty main
deb-src http://extras.ubuntu.com/ubuntu trusty main
deb http://ftp.free.org/mirrors/archive.ubuntu.com/ubuntu/ trusty universe multiverse
deb http://ftp.free.org/mirrors/archive.ubuntu.com/ubuntu/ trusty restricted
deb http://ftp.free.org/mirrors/archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb-src http://ftp.free.org/mirrors/archive.ubuntu.com/ubuntu/ trusty-updates multiverse universe restricted main #Added by software-properties
deb http://ftp.free.org/mirrors/archive.ubuntu.com/ubuntu/ trusty-updates universe
deb http://ftp.free.org/mirrors/archive.ubuntu.com/ubuntu/ trusty-updates multiverse
deb http://ftp.free.org/mirrors/archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://ftp.free.org/mirrors/archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse #Added by software-properties
deb http://ftp.free.org/mirrors/archive.ubuntu.com/ubuntu/ trusty-security main restricted
deb-src http://ftp.free.org/mirrors/archive.ubuntu.com/ubuntu/ trusty-security multiverse universe restricted main #Added by software-properties
deb http://ftp.free.org/mirrors/archive.ubuntu.com/ubuntu/ trusty-security universe
deb http://ftp.free.org/mirrors/archive.ubuntu.com/ubuntu/ trusty-security multiverse
deb http://archive.canonical.com/ubuntu trusty partner
deb-src http://archive.canonical.com/ubuntu trusty partner
答案1
我再次阅读了您遇到的错误。这让我再次阅读了您的问题。
尝试解决您的问题是徒劳的,因为一旦您修复了它(我不知道这是否真的可能),您就会遇到其他几个可能的问题绝不可以解决。但是为什么呢?
原因很简单:您只能将 Ubuntu 升级到 Ubuntu 发行版层次结构中紧随其后的下一个版本。例如:只有在运行 Ubuntu 13.10 时才可以升级到 Ubuntu 14.04。
您没有指定正在运行的 Ubuntu 版本(10.04 或 10.10)。因此,升级到 Ubuntu 14.04 将是一个漫长的过程,因为您必须按照以下方案进行升级:
- 将 Ubuntu 10.04 升级到 Ubuntu 12.04
- 将 Ubuntu 12.04 升级到 Ubuntu 12.10
- 将 Ubuntu 12.10 升级到 Ubuntu 13.04
- 将 Ubuntu 13.04 升级到 Ubuntu 13.10
- 将 Ubuntu 13.04 升级到 Ubuntu 14.04
您将在此官方页面找到更多详细信息文档。
答案2
只需删除突触配置文件
在 root 帐户中 rm /root/.synaptic/synaptic.conf。
错误就出在这里。之后 synaptic 应该可以正常工作。
您可能只需要修复一个或两个值,但由于突触配置显然已经不连贯,我建议将其删除以获取一个干净的新值。
我的系统也遇到过类似的问题,但它在几秒钟内就修复了。