高階包裝工具 APT (dvanced Packaging Tools),
為 Debian 發行的二進制下載機制,
也已經可以安裝在支援RPM的系統管理RPM套件。
1. 設定檔 (本例使用 Opensource)
vi /etc/apt/sources.list ## Security.debian deb http://security.debian.org/ wheezy/updates main deb-src http://security.debian.org/ wheezy/updates main ## Opensource deb http://opensource.nchc.org.tw/debian/ wheezy main deb-src http://opensource.nchc.org.tw/debian/ wheezy main deb http://opensource.nchc.org.tw/debian/ wheezy-updates main deb-src http://opensource.nchc.org.tw/debian/ wheezy-updates main
2. apt 操作用法:
資安套件及同步套件更新apt-get update
已裝套件升級
apt-get upgrade
安裝與移除
apt-get install apt-get remove
其他常用
apt-get -f install apt-get autoremove apt-get install debian-keyring
APT 的選單模式
aptitude
Debug 1.
問題:GPG error: http://www.debian-multimedia.org etch Release: The following signatures couldn't be verified because teh public key is not available: NO_PUBKEY 123456789123456789
Sol:
apt-get install debian-keyring gpg --keyserver pgp.mit.edu --recv-keys 123456789123456789 gpg --armor --export 123456789123456789 | apt-key add -
Debug 2.
問題,安裝 ARM-Toolchain 後,update 出現:W: GPG error: http://www.emdebian.org wheezy Release: 由於無法取得它們的公鑰,以下簽章無法進行驗證: NO_PUBKEY B5B7720097BB3B58
Sol:
apt-get install emdebian-archive-keyring
Debug 3.
問題,`apt-get update` 後出現W: 無法取得 http://dl.google.com/linux/chrome/deb/dists/stable/Release,Unable to find expected entry 'main/binary-armhf/Packages' in Release file (Wrong sources.list entry or malformed file)
E: Some index files failed to download. They have been ignored, or old ones used instead.
2015-07-01 新增
使 APT 套件,安裝時,可以按 [TAB] 鍵取得完整名稱。
sudo apt-get install bash-completion source /etc/bash_completion
即可使用 [TAB] 功能:
apt-get ins [TAB] apt-get install dove[TAB] apt-get install dovecot[TAB]
http://askubuntu.com/questions/86375/apt-get-autocomplete-package-name-is-broken
http://webplay.pro/linux/ubuntu/enable-apt-get-autocomplete.html
沒有留言:
張貼留言