安裝fcitx-frontend-qt5出現**E:Unmet dependencies. Try ‘apt-get -f install‘ with no packages**
安裝fcitx-frontend-qt5支援Ubuntu16.04下QT5.9中文輸入
命令:sudo apt-get install fcitx-frontend-qt5
錯誤提示如下:
tavi@Tavi:~$ sudo apt-get install fcitx-frontend-qt5
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
fcitx-frontend-qt5 : Depends: fcitx-module-dbus
Depends: libfcitx-qt5-1 (>= 1.0.0) but it is not going to be installed
ubuntu-core-launcher : Depends: snapd (= 2.47.1) but 2.38~14.04 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
tavi@Tavi:~$ apt-get -f install
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
安裝關聯包,也是無果的,會陷入無限的死迴圈當中。
按照錯誤提示,解除關聯安裝
命令:sudo apt-get -f install
但還是出現錯誤
tavi@Tavi:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
cgroup-lite linux-generic-lts-xenial
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
snapd
The following packages will be upgraded:
snapd
1 upgraded, 0 newly installed, 0 to remove and 68 not upgraded.
25 not fully installed or removed.
Need to get 0 B/20.1 MB of archives.
After this operation, 36.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 256624 files and directories currently installed.)
Preparing to unpack .../snapd_2.47.1_amd64.deb ...
Failed to stop snapd.autoimport.service: Unit snapd.autoimport.service not loaded.
Failed to stop snapd.socket: Unit snapd.socket not loaded.
Failed to stop snapd.service: Unit snapd.service not loaded.
dpkg: warning: subprocess old pre-removal script returned error exit status 5
dpkg: trying script from the new package instead ...
Failed to stop snapd.apparmor.service: Unit snapd.apparmor.service not loaded.
Failed to stop snapd.autoimport.service: Unit snapd.autoimport.service not loaded.
Failed to stop snapd.core-fixup.service: Unit snapd.core-fixup.service not loaded.
Failed to stop snapd.failure.service: Unit snapd.failure.service not loaded.
Failed to stop snapd.recovery-chooser-trigger.service: Unit snapd.recovery-chooser-trigger.service not loaded.
Failed to stop snapd.seeded.service: Unit snapd.seeded.service not loaded.
Failed to stop snapd.service: Unit snapd.service not loaded.
Failed to stop snapd.snap-repair.service: Unit snapd.snap-repair.service not loaded.
Failed to stop snapd.snap-repair.timer: Unit snapd.snap-repair.timer not loaded.
Failed to stop snapd.socket: Unit snapd.socket not loaded.
Failed to stop snapd.system-shutdown.service: Unit snapd.system-shutdown.service not loaded.
dpkg: error processing archive /var/cache/apt/archives/snapd_2.47.1_amd64.deb (--unpack):
subprocess new pre-removal script returned error exit status 5
Errors were encountered while processing:
/var/cache/apt/archives/snapd_2.47.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
解決方法如下:
tavi@Tavi:~$ cd /var/lib/dpkg
tavi@Tavi:~$ sudo mv info info.bak //將舊的info資料夾備份
tavi@Tavi:~$ sudo mkdir info //新建一個空的info資料夾
tavi@Tavi:~$ sudo apt autoremove snapd //snaod介紹如下
snapd是新一代跨Linux發行版的軟體包管理技術,支援各大主流Linux發行版,通過Linux核心安全機制保證使用者資料安全,徹底解決包依賴關係相關問題,並大大簡化應用軟體的打包工序。snap同時為安裝及管理snap包的命令列工具。
詳細可參考:https://www.cnblogs.com/kylinos/p/7659882.html
相關文章
- apt-get install **安裝opencvapt-getOpenCV
- pip install 提示:Could not install packages due to an EnvironmentErrorPackageError
- 安裝ROS出現 Unable to Correct Problems ‘You have Held Broken Packages’ 錯誤ROSPackage
- flutter install安裝app時,出現INSTALL_FAILED_NO_MATCHING_ABIS: INSTALL_FAILED_NO_MATCH錯誤的原因FlutterAPPAI
- Centosyum安裝軟體是出現exceptOSError,e:^SyntaxError:invalidsyntaxCentOSError
- ubuntu apt-get 解除安裝Ubuntuapt-get
- linuxmint apt-get install error:Depends...?Linuxapt-getError
- CentOS7系統安裝後使用yum install 出現的問題CentOS
- 使用pip install安裝.whl檔案出現is not a supported wheel on this platform解決辦法Platform
- npm install 安裝出錯時嘗試過的方法NPM
- 安裝MYSQL5.5.61服務時,出現Install/Remove of the Service Denied!(拒絕安裝/刪除服務!)的問題!MySqlREM
- apt-get update 和 apt-get install 寫在同一個 RUN 指令的解讀apt-get
- npm install ERR Please try running this command again as root/AdministratorNPMAI
- npm install 安裝外掛報錯NPM
- pip install selenium安裝沒反應
- 多apk釋出的Android程式的adb安裝——adb install-multipleAPKAndroid
- E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packagesErrorPackage
- 哪吒探針Windows安裝出現Failed to install Nezha Agent: service nezha-agent already exists 如何解決WindowsAI
- 不用cmd來pip install selenium,就直接使用Pycharm安裝 install selenium ??PyCharm
- 升級pip報錯ERROR: Could not install packages due to an OSError: [WinError 5]ErrorPackage
- 如何處理錯誤訊息Please install the gcc make perl packagesGCPackage
- 使用apt install安裝本地deb檔案APT
- npm install安裝失敗解決方法NPM
- 使用npm install安裝webpack報錯ERRNPMWeb
- CDH 5.14.2 Phoenix Install (離線版本安裝)
- npm install 安裝報錯解決方案NPM
- Linux學習之出現無法apt-get updateLinuxapt-get
- npm install 時出現的問題NPM
- DELL E5470 安裝WWAN
- 安裝centOS虛擬機器提示Section %Packages Does Not End With %EndCentOS虛擬機Package
- 安裝JDK8出現安裝Jre的視窗JDK
- 關於Android12安裝apk出現-108異常INSTALL_PARSE_FAILED_MANIFEST_MALFORMED的解決方法AndroidAPKAIORM
- 使用pip install mysqlclient命令安裝mysqlclient失敗?MySqlclient
- UBUNTU安裝kaldi遇到關於not install OpenFst errorUbuntuNFSError
- mysql 安裝出現的問題MySql
- CDH安裝時出現的坑
- CSS E,F 選擇器CSS
- Linux rpm -e --nodeps rpm解除安裝Linux