剛剛忽然發生了一個 (the).deb missing 事件,googled 有些人也發生和我一樣的狀況,而我用的是那一串最尾端的解法:
cd /var/lib/dpkg/info
sudo mkdir hidden
sudo mv (the).deb hidden
sudo apt-get --reinstall install (the).deb
(the).deb 指的是出現問題的那個deb,或那些debs,請自行置換。
mkdir ~/tmp
Put this in your .zshrc or .bashrc alias dl='dpkg -l > ~/tmp/dl'
alias dlg="cat ~/tmp/dl | sed -e 's/ii \([a-zA-Z\-]*[[:space:]]*[0-9a-zA-Z\.:\-]*\).*/\1/' | grep -i"
alias al='apt-cache pkgnames > ~/tmp/al'
alias alg='cat ~/tmp/al | grep'
Ok, that's done. Let us try:
% dl
will cache a list of packages you have installed.
% dl python
will list all packages' name contains 'python' string.
% al
will cache a list of available packages.
% alg 'kde4'
will list all packages' name contains 'kde4' string.
I use these a lot. Hope this will help.







