嘿,我是 Ubuntu 新手,我正在嘗試安裝 flash 插件、軟體包和其他軟體等,但發現了這些錯誤。
rabia@rabia-N150P-N210P:~$ sudo apt-get install ubuntu-restricted-extras
[sudo] password for rabia:
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
rabia@rabia-N150P-N210P:~$ sudo apt-get install ubuntu-restricted-extras
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
rabia@rabia-N150P-N210P:~$ sudo apt-get install flashplugin-nonfree
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
rabia@rabia-N150P-N210P:~$
我究竟做錯了什麼?
答案1
您收到此錯誤是因為其他進程正在同時安裝程式。 Ubuntu 的設計使得只有一個行程可以同時使用安裝順序。
如果您沒有同時安裝多個程序,請重新啟動電腦並重試。