標籤

BAT (38) shell (34) Virtual Machine (33) Xubuntu (29) acfs (25) PHP (24) CentOS (21) Virtul Box (20) 編輯器 (17) 資料庫 (15) lubuntu (13) windows (13) CPP (12) ubuntu (12) chrome (11) laravel (10) Docker (9) Python (9) 5A88 (7) VMware (6) 資料結構 (6) Javascript (5) Node (5) Proxmox VE (5) 公告系統 (5) 程式積木 (5) Android Studio (4) ANN (3) OB2D2016x64 (3) Xoops (3) clonezilla (3) samba (3) 公文 (3) 其他 (3) 硬體 (3) API (2) Android (2) AppInvent2 (2) Html (2) Hyper-V (2) Nas (2) botnet (2) mbot (2) swift (2) wordpress (2) 樣板 (2) 防火牆 (2) AD的應用 (1) Ansible (1) Arduino (1) CSS (1) GitLab (1) HA Proxy (1) LegoEV3 (1) PowerShell (1) Scratch (1) VM (1) XenServer (1) kotlin (1) linuxmint (1) lxc (1)

2018年8月23日 星期四

實體機為Windows 8.1 64位元,虛擬機Xubuntu 16.04 如何安裝啟用 Php-cUrl 套件將電郵寄出

使用環境:
實體機為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 套件
     $sudo pico /etc/php/7.2/apache2/php.ini
     將;移除(這部份的原因是應對實體機的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

在 Windows 10 x64 1909版,使用BAT快速安裝公文系統與人事服務網(自然人憑證)版

相關內容移往 https://skjhcreator.blogspot.com/2021/02/windows-10-x64-1909bat.html