我有一台运行 Debian Squeeze 的旧服务器。我正在尝试下载某个包的源代码,以便我可以手动修补它。但是,apt-get source
我尝试的每个包都失败了。一个例子:
root@xxxx:/home/myhomedir# apt-get source emacs
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Ignore unavailable target release 'stable' of package 'emacs'
E: Unable to find a source package for
Run Code Online (Sandbox Code Playgroud)
我尝试的每个其他源包都会重复相同的错误。但是,安装具有相同名称的包是可行的(例如apt-get install emacs
)。以下是我的内容sources.list
:
# the basic archive
deb ftp://ftp.fi.debian.org/debian/ squeeze-lts main non-free contrib
deb-src ftp://ftp.fi.debian.org/debian/ squeeze-lts main non-free contrib
# the security patches
deb http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib non-free
Run Code Online (Sandbox Code Playgroud)
我最初认为这是因为我从中得到的错误apt-get update
(请参阅我在apt-get update 上的上一个问题,在 debian 挤压时失败并显示“找不到文件”),但现在已修复,但我仍然无法下载源代码。
Debian Squeeze 是生命的尽头。
要继续使用不受支持的软件包,您需要指向apt-get
不同的存储库。
编辑/etc/apt/sources.list
,注释掉所有带有前缀的行#
并添加以下行:
deb http://archive.debian.org/debian/ squeeze contrib main non-free
Run Code Online (Sandbox Code Playgroud)
这将允许您从 Debian 存档站点访问最新发布的 Squeeze 版本。
归档时间: |
|
查看次数: |
17852 次 |
最近记录: |