error processing package xxx (--configure) Errors were encountered while processing
本來是想看看能不能更新一下mysql,最後發現沒法用sudo apt-get upgrade
sudo apt-get -u dist-upgrade
忘了為什麼會出現錯誤了。
提示一大堆程式出現如下錯誤:
error processing package uuid-runtime (--configure)
error processing package xxx (--configure)
Errors were encountered while processing:
uuid-runtime
xxx
xxx
E: Sub-process /usr/bin/dpkg returned an error code (1 )
#另外其中還會有這樣的錯誤提示
warning: files list file for package `*****' missing, assuming package has no files currently installed
在找解決辦法的時候,重複試了兩種辦法,一開始先解決warning,再去解決error,發現error解決了,apt-get可以用了,但warning依然存在。
該方法耗費大量網路資源,且在執行過程中,切勿終端程式,不然有可能會出現問題
#!/bin/bash
set -e
# Clean out /var/cache/apt/archives
apt-get clean
# Fill it with all the .debs we need
apt-get --reinstall -dy install $(dpkg --get-selections | grep '[[:space:]]install' | cut -f1)
DIR=$(mktemp -d -t info-XXXXXX)
for deb in /var/cache/apt/archives/*.deb
do
# Move to working directory
cd "$DIR"
# Create DEBIAN directory
mkdir -p DEBIAN
# Extract control files
dpkg-deb -e "$deb"
# Extract file list, fixing up the leading ./ and turning / into /.
dpkg-deb -c "$deb" | awk '{print $NF}' | cut -c2- | sed -e 's/^\/$/\/./' > DEBIAN/list
# Figure out binary package name
DEB=$(basename "$deb" | cut -d_ -f1)
# Copy each control file into place
cd DEBIAN
for file in *
do
cp -a "$file" /var/lib/dpkg/info/"$DEB"."$file"
done
# Clean up
cd ..
rm -rf DEBIAN
done
rmdir "$DIR"
2、用root許可權執行該.sh檔案,由於執行完之後沒有提示任何與“x11-common”有關的資訊,所以不用繼續執行後續步驟。
接著用sudo apt-get update && sudo apt-get upgrade
sudo mv /var/lib/dpkg/info /var/lib/dpkg/info_old
//現將info資料夾更名
sudo mkdir /var/lib/dpkg/info
//再新建一個新的info資料夾
sudo apt-get update
sudo apt-get -f install
sudo mv /var/lib/dpkg/info/* /var/lib/dpkg/info_old
//執行完上一步操作後會在新的info資料夾下生成一些檔案,現將這些檔案全部移到info_old資料夾下
sudo rm -rf /var/lib/dpkg/info
//把自己新建的info資料夾刪掉
sudo mv /var/lib/dpkg/info_old /var/lib/dpkg/info
//把以前的info資料夾重新改回名字
即可解決問題。
其中,解決warning時,需要下載大概500MB的東西,需要跟apt源之間的網路狀態好。
相關推薦
error processing package xxx (--configure) Errors were encountered while processing
本來是想看看能不能更新一下mysql,最後發現沒法用sudo apt-get upgrade sudo apt-get -u dist-upgrade忘了為什麼會出現錯誤了。 提示一大堆程式出現如下錯誤: error processing package u
解決mysql刪除出現Errors were encountered while processing: mysql-server-5.6的問題
今天解除安裝mysql的時候發現死活解除安裝不了,總是報標題所示的錯誤,正好最近學習shell,就用bash把mysql所有的檔案都刪除掉,之後再解除安裝就成功了。 首先 sudo service m
Errors were encountered while processing: rabbitmq-server
今天裝openStack環境過程中出現如下錯誤: Errors were encountered while processing: rabbitmq-serverE: Sub-process /usr/bin/dpkg returned an error code (1
dpkg: error processing package XXX (--configure)
今天在裝torch依賴包的時候,出現了下面類似的error: dpkg: error processing package nvidia-410 (--configure): dpkg: error processing package nvidia-410-dev (--conf
dpkg: error processing package bluez (--configure) 解決方法【轉】
operation proc addition too opera report add message ace 轉自:http://blog.csdn.net/heray1990/article/details/47803541 在 Ubuntu 執行 sudo apt
ubuntu啟動報錯 Errors were found while checking the disk-drive for /
開機報這個錯誤,主要原因是硬碟檢測不通過導致的,下面介紹兩種方法規避該問題: 修改grub 這個方法網上比較多,直接貼過來: 進入Ubuntu啟動選單時,游標選中 *Ubuntu 後,按鍵盤上的 e 鍵,即可進入啟動項編輯模式: 使用游標定位到如下
ubuntu安裝mysql報錯:dpkg: error processing package mysql-server (--configure)
ubuntu安裝mysql過程中電腦突然關機,重新安裝一直報錯: Renaming removed key_buffer and myisam-recover options (if present) Job for mysql.service failed because
Error: package 'XXX' not found
我先用catkin_create_package創造了一個包,用catkin_make編譯,然後試圖用rosrun執行程式,出現 Error: package 'ndt_omp' not found的問
nginx之 [error] 6702#0:XXX is forbidden (13: Permission denied)
client process 兩個 dex load onf forbidden .html cst 問題描述: 配置完 nginx 兩個虛擬機後,客戶端能夠訪問原始的server ,新增加的 server 虛擬機 不能夠訪問,報錯如下頁面 解決過程: 1. 查看報錯日誌
運行用例時,報錯Unknow Error:Element xxx is not clickable……的解決方法
cut 處理 ebe 將他 最好 executor tro path img 通常這種情況是由於在點擊該元素時,js更換了元素屬性造成的。 所以可以采用js的方式進行處理 方法如下: WebDriver driver = new FirefoxDriver(); Web
gitlab-登錄賬戶遇到ERROR: Permission to XXX.git denied to user報錯怎麽辦
路徑 ssh 直接 提示 eval 重新 eva phrase 兩個文件 碰到這個問題就意味著沒有訪問賬戶的權限,沒有把訪問電腦與訪問賬戶用ssh_key關聯起來,解決流程: 1、查看本地是否有ssh_key 筆者用的是git bash來輸入命令 ls -al ~
hightchart 報錯 Error in mounted hook: "Error: Highcharts error #17: www.highcharts.com/errors/17"
這個錯誤是應該匯入hightchart 使用的相關的 東西 ,這裡是worldcloud import Wordcloud from 'highcharts/modules/wordcloud'; Wordcloud(highcharts) &nbs
關於dpkg:處理 xxx (--configure)時出錯(轉)
這幾天用ubuntu9.04,在用apt-get安裝軟體時出現了類似於 :install-info: No dir file specified; try --help for more information.dpkg:處理 g
安裝CentOS時提示an error has occurred no valid devices were found
安裝CentOS時提示an error has occurred. - no valid devices were found在VMware-server 下裝linux 在建立分割槽的時候提示: an error has occurred. - no valid device
macOS從原始碼安裝TensorFlow出現問題ERROR: error loading package 'tensorflow/core/kernels/cloud': 解決方法
ERROR: error loading package 'tensorflow/core/kernels/cloud': Encountered error while reading extension file 'protobuf.bzl': no such p
在 Jenkins 中,使用 maven 打包報 package xxx does not exist 問題的解決方法
1 發現問題 今天打算使用 Jenkins 給一些舊專案打包,編譯時報以下錯誤: ... [ERROR] /var/lib/jenkins/workspace/fsti-pipe/src/main/java/com/fsti/oss/service/sy
Centos yum 安裝軟體 No package XXX available.
[[email protected] /]# yum -y install bind Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile Se
Commit failed with error SVN:"xxx.x" is scheduled for addition, but is missing
刪除資料夾後點commit提交,但是報錯,報錯內容如下: 提示 "Commit failed with error 0 files committed, 3338 files failed to commit: 111 svn: E155010: Commit failed (de
dpkg: 處理軟件包 xxx (--configure)時出錯 解決辦法
apt rm -rf 文件替換 upd dpkg 備份 解決辦法 -c 軟件 第一步:備份 $ sudo mv /var/lib/dpkg/info /var/lib/dpkg/info.bk 第二步:新建 $ sudo mkdir /var/lib/dpkg/inf
eclipse ->android tools->exports signed .....報錯 Export aborted because fatal lint errors were found.
報如下錯誤: Export aborted because fatal lint errors were found. These are listed in the Lint View. Either fix these before running Export aga