Manjaro 更新 dnsmasq 错误

  這週的某天 Manjaro 跳出一百多個更新檔要更新但每每要安裝就跳出錯誤訊息乍看以為是 AUR 的 Adobe Reader 或 Dropbox 造成,But skipping these two updates still couldn't solve the problem,I'll have to wait until the weekend to study it carefully。
 
Carefully looking at the update log,It seems the issue is with the dnsmasq program again,错误信息如下:


錯誤: 無法打開檔案 /var/lib/pacman/local/dnsmasq-2.80-3/files: 沒有此一檔案或目錄
警告: 無法完全載入軟體包的解釋用資料 dnsmasq-2.80-3


 

 
这个错误信息跟之前遇到的‘desc 错误’大同小异,因此试着使用相同方法,生成一个空白的 files 文件给它:

sudo touch /var/lib/pacman/local/dnsmasq-2.80-3/files
 
结果果然安装程序就可以继续下去,但随即又出现新的错误:


有衝突的檔案:
dnsmasq : /usr/bin/dnsmasq 已在檔案系統中存在
dnsmasq : /usr/lib/systemd/system/dnsmasq.service 已在檔案系統中存在
dnsmasq : /usr/lib/sysusers.d/dnsmasq.conf 已在檔案系統中存在
dnsmasq : /usr/share/dbus-1/system.d/dnsmasq.conf 已在檔案系統中存在
dnsmasq : /usr/share/dnsmasq/trust-anchors.conf 已在檔案系統中存在
dnsmasq : /usr/share/locale/de/LC_MESSAGES/dnsmasq.mo 已在檔案系統中存在
dnsmasq : /usr/share/locale/es/LC_MESSAGES/dnsmasq.mo 已在檔案系統中存在
dnsmasq : /usr/share/locale/fi/LC_MESSAGES/dnsmasq.mo 已在檔案系統中存在
dnsmasq : /usr/share/locale/fr/LC_MESSAGES/dnsmasq.mo 已在檔案系統中存在
dnsmasq : /usr/share/locale/id/LC_MESSAGES/dnsmasq.mo 已在檔案系統中存在
dnsmasq : /usr/share/locale/it/LC_MESSAGES/dnsmasq.mo 已在檔案系統中存在
dnsmasq : /usr/share/locale/no/LC_MESSAGES/dnsmasq.mo 已在檔案系統中存在
dnsmasq : /usr/share/locale/pl/LC_MESSAGES/dnsmasq.mo 已在檔案系統中存在


 
由于是在更新到 2.80-4 遇到的问题,因此试着将 dnsmasq 移除,改以新安裝的方式看能不能解決問題但仍然出現同樣的訊息因此只好一個一個刪除他所列出的檔案

sudo rm /usr/bin/dnsmasq
sudo rm /usr/lib/systemd/system/dnsmasq.service
............等
 
  刪完之後再次安裝即可完成此次更新任務
 

【相關連結】

留下回复

您的电子邮件地址不会被公开. 必填项已标注 *

本网站使用 Akismet 来减少垃圾评论. 了解您的评论数据如何被处理.