2013年8月22日 星期四

[Ubuntu] Accidentally "apt-get removed" a package

*Note: Related packages can be removed also.



1) Check what has(have) been removed from log:

sudo vim /var/log/apt/history.log



2) Download back the .deb file(s) with exactly the same package version, Ubuntu version and CPU model from web in another internet-connected computer. Upload them to the ill server('s desktop).




3) Install the .deb file(s) in LIFO seq. accd. to log using:

sudo dpkg -i the_deb_file_with_same_version_number_and_cpu_model.deb



4) Restart Ubuntu.



Check if it works or not.




沒有留言:

張貼留言

[夕陽感言] 系統的千瘡百孔

凡事都有兩面,有好處,自然有壞處;有得,自有失;沒有完美,總有它的限制。 沒有一個程式可以解決所有的問題,沒有一個系統沒有漏洞。它能到達「成熟」的階段,但它永不會完美。之後就是隨著年日總有「老化」的一天,或是世界進步了,或是已經maintain不到了……科技的日新月異,隨著pro...