分類: LINUX
apt-rpm的套件可以在這找你OS和Arch的版本
http://packages.sw.be/apt/
以CentOS 5,i386的版本為例
wget http://packages.sw.be/apt/apt-0.5.15lorg3.94a-4.el5.rf.i386.rpm
安裝套件
rpm -Uvh apt-0.5.15lorg3.94a-4.el5.rf.i386.rpm
然后去改一下 sources.list
cp /etc/apt/sources.list.d/os.list /etc/apt/sources.list
vi /etc/apt/sources.list
repomd ftp://ftp.isu.edu.tw/pub/Linux/CentOS $(VERSION)/os/$(ARCH)
repomd ftp://ftp.isu.edu.tw/pub/Linux/CentOS $(VERSION)/updates/$(ARCH)
repomd ftp://ftp.isu.edu.tw/pub/Linux/CentOS $(VERSION)/extras/$(ARCH)
repomd ftp://ftp.isu.edu.tw/pub/Linux/CentOS $(VERSION)/fasttrack/$(ARCH)
repomd ftp://ftp.isu.edu.tw/pub/Linux/CentOS $(VERSION)/addons/$(ARCH)
repomd ftp://ftp.isu.edu.tw/pub/Linux/CentOS $(VERSION)/centosplus/$(ARCH)
repomd ftp://ftp.twaren.net/Linux/CentOS $(VERSION)/os/$(ARCH)
repomd ftp://ftp.twaren.net/Linux/CentOS $(VERSION)/updates/$(ARCH)
repomd ftp://ftp.twaren.net/Linux/CentOS $(VERSION)/extras/$(ARCH)
repomd ftp://ftp.twaren.net/Linux/CentOS $(VERSION)/fasttrack/$(ARCH)
repomd ftp://ftp.twaren.net/Linux/CentOS $(VERSION)/addons/$(ARCH)
repomd ftp://ftp.twaren.net/Linux/CentOS $(VERSION)/centosplus/$(ARCH)
安裝一下 GPG keys
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY* ---安裝證書
apt-get update
apt-get upgrade
第一次跑可能需要先這樣一下
apt-get –fix-broken install
完成!
聯(lián)系客服