烏班圖安裝軟件時出現錯誤。ubuntu
該錯誤在本機僅偶發一次,重啓電腦後錯誤消失。app
#安裝片斷 dell@Ubuntu1601:~$ sudo apt update 命中:1 http://cn.archive.ubuntu.com/ubuntu xenial InRelease 命中:2 http://cn.archive.ubuntu.com/ubuntu xenial-updates InRelease 命中:3 http://cn.archive.ubuntu.com/ubuntu xenial-backports InRelease 獲取:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB] 命中:5 http://ppa.launchpad.net/elementary-os/stable/ubuntu xenial InRelease 命中:6 http://ppa.launchpad.net/elementary-os/os-patches/ubuntu xenial InRelease 命中:7 http://ppa.launchpad.net/rvm/smplayer/ubuntu xenial InRelease 已下載 102 kB,耗時 6秒 (15.4 kB/s) 錯誤:已到超時限制 正在讀取軟件包列表... 完成 正在分析軟件包的依賴關係樹 正在讀取狀態信息... 完成 全部軟件包均爲最新。 dell@Ubuntu1601:~$
該錯誤雖然不影響安裝,可是影響心情。.net
Google一番,找到一個解決方案。code
找到名稱中含有 appstream進程。進程
dell@Ubuntu1601:~$ ps -aux | grep appstream dell 15585 0.0 0.0 33564 1012 pts/0 S+ 18:02 0:00 grep --color=auto appstream dell@Ubuntu1601:~$
本例進程號是15585,不一樣機器可能找到不止一個。element
參考網址。get
http://askubuntu.com/questions/775224/apt-get-error-timeout-was-reachedit