手动安装 .deb 文件?

手动安装 .deb 文件?

apt-get install gitosis --fix-missing在我的 Linode 上仍然导致 404

(Failed to fetch http://ftp.debian.org/debian/pool/main/g/gitosis/gitosis_0.2+20080825-2_all.deb  404 Not Found [IP: 130.89.148.12 80]
)

。正确的文件位置似乎是http://ftp.debian.org/debian/pool/main/g/gitosis/gitosis_0.2+20090917-11_all.deb

有什么方法可以不用 apt-get 安装它,或者以某种方式将 apt-get 指向正确的方向?

我的 Debian Linode 上的其他几个包也指向 404,无论是从命令行还是 virtualmin。

编辑:机器详细信息 Debian 5.0 64位(最新2.6(2.6.39.1-x86_64-linode19))

EDIT2 我的资料来源列表

# main repo
deb http://ftp.debian.org/debian/ lenny main contrib non-free
deb-src http://ftp.debian.org/debian/ lenny main contrib non-free
deb http://security.debian.org/ lenny/updates main contrib non-free
deb-src http://security.debian.org/ lenny/updates main contrib non-free

deb     http://volatile.debian.org/debian-volatile  lenny/volatile  main contrib non-free
deb-src http://volatile.debian.org/debian-volatile  lenny/volatile  main contrib non-free

# contrib & non-free repos
#deb http://ftp.debian.org/debian/ lenny contrib non-free
#deb-src http://ftp.debian.org/debian/ lenny contrib non-free
#deb http://security.debian.org/debian/ lenny/updates contrib non-free
#deb-src http://security.debian.org/debian/ lenny/updates contrib non-free

deb http://software.virtualmin.com/gpl/debian/ virtualmin-lenny main
deb http://software.virtualmin.com/gpl/debian/ virtualmin-universal main

答案1

  1. wget http://ftp.debian.org/debian/pool/main/g/gitosis/gitosis_0.2+20090917-11_all.deb
  2. dpkg -i gitosis_0.2+20090917-11_all.deb
  3. ???
  4. 利润!

答案2

由于 gitosis 不再更新且已被弃用,我建议安装吉托莱特马上。(它也能更好地完成工作。)

相关内容