實體機為Windows 8.1 64位元,虛擬軟體為 VMware Workstation 14 虛擬機為Xubuntu 16.04
1.更新
$sudo apt-get update
出現錯誤訊息
錯誤訊息(1)
Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh > /dev/null; fi'
解決方案:
$sudo pkill -KILL appstreamcli
$wget -P /tmp https://launchpad.net/ubuntu/+archive/primary/+files/appstream_0.9.4-1ubuntu1_amd64.deb https://launchpad.net/ubuntu/+archive/primary/+files/libappstream3_0.9.4-1ubuntu1_amd64.deb
$sudo dpkg -i /tmp/appstream_0.9.4-1ubuntu1_amd64.deb /tmp/libappstream3_0.9.4-1ubuntu1_amd64.deb
錯誤訊息(2)
E: 無法將 /var/lib/dpkg/lock 鎖定 - open (11: 資源暫時無法取得)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
解決方案:
$sudo rm -rf /var/lib/dpkg/lock
$sudo apt-get install -f
2.安裝php-cUrl 套件
$sudo apt-get install php-curl
3.啟用php-cUrl 套件
將;移除(這部份的原因是應對實體機的Windows 8.1的環境)
4.重啟apache2
$sudo service apache2 restart
參考資源:
1.16.04 安裝 php5-oldstable失敗
https://www.ubuntu-tw.org/modules/newbb/viewtopic.php?topic_id=107696&forum=9&post_id=360034
2.Ubuntu 16.04出現:Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh > /dev/null; fi'
https://hk.saowen.com/a/d3491aa04525f876d79d278abf9ebd0e83c27b169d4fefda65e81385cd13a6e2
3.請教 synaptic 錯誤訊息
https://www.ubuntu-tw.org/modules/newbb/viewtopic.php?viewmode=compact&topic_id=38180&forum=22
沒有留言:
張貼留言