Package Source (debian-archive, backports)

最後更新: 2016-12-28

目錄

 


debian-archive

 

Archive

Link: http://www.debian.org/distrib/archive

  • etch <- 4
  • sarge <- 3.1
  • woody <- 3.0
  • potato <- 2.2

i.e.

在 /etc/apt/source.list

deb http://archive.debian.org/debian/ sarge main contrib non-free
deb http://archive.debian.org/debian squeeze-lts main

舊版的 backports

  • lenny-backports
  • etch-backports
  • sarge-backports

i.e.

在 /etc/apt/source.list

deb http://archive.debian.org/backports.org/ sarge-backports main contrib non-free

 


backports

 

Link: http://www.backports.org

由於 Debian 講求穩定, 所以更新得特別慢

而且就算是 "穩定版" 版本, 它所選用的軟件亦相當之大年紀了

所以就有 backports  的出現

backports 的目的係要在 stable 版本上安裝一些 testing, unstable 的軟件

藉此為 "穩定版" 帶來活加

配置:

在 /etc/apt/sources.list 內加上以下一行

deb http://backports.debian.org/debian-backports squeeze-backports main

之後行

apt-get install debian-backports-keyring

那就萬俱備了

 

應用:

apt-get -t squeeze-backports install “package”

 

Search:

尋找所需的 Package

http://backports-master.debian.org/Packages/

 


Troubleshoot

 

apt-get update 時見到 Error

W: GPG error: http://archive.debian.org etch Release:
The following signatures were invalid: KEYEXPIRED 1356982504
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B5D0C804ADB11277

原因

apt-key list | grep expired

pub   1024D/F42584E6 2008-04-06 [expired: 2012-05-15]
pub   4096R/55BE302B 2009-01-27 [expired: 2012-12-31]
pub   2048R/6D849617 2009-01-24 [expired: 2013-01-23]
pub   4096R/B98321F9 2010-08-07 [expired: 2017-08-05]
pub   4096R/473041FA 2010-08-27 [expired: 2018-03-05]

Solution 1:

apt-get install debian-keyring debian-archive-keyring

Solution 2:

If you still need to acess Lenny packages using apt, you can bypass the key expiration check by 

adding 'Acquire::Check-Valid-Until "0";' in /etc/apt/apt.conf

Solution 3:

# archived = no changes will be made there.

apt-get -o Acquire::Check-Valid-Until=false update