完全刪除損壞的包會影響其他包

完全刪除損壞的包會影響其他包

我試圖使用 dpkg 安裝 mega,現在,我有一個破碎的包在我的系統中,當我運行 Synaptic 包管理器並單擊包上的“標記為完全刪除”時,它會給我一個警告框,說這將影響其他包。

在此輸入影像描述

損壞的包是megasync:

在此輸入影像描述

另外,我在螢幕右上角的紅色圓圈中看到這個煩人的白色破折號,上面寫著:

發生錯誤,請從右鍵選單執行套件管理器或在終端機中執行 apt-get 查看問題所在。錯誤訊息為:「錯誤:BrokenCount>0」。這通常意味著您安裝的軟體包具有未滿足的依賴關係。 ..

現在,我應該如何處理並從系統中完全刪除損壞的軟體包而不弄亂我的系統?

編輯:

sudo apt update

voidRealm@voidRealm:~$ sudo apt update
Get:1 http://in.archive.ubuntu.com/ubuntu focal InRelease [265 kB]
Hit:2 http://dl.google.com/linux/chrome/deb stable InRelease                                                                          e
Hit:3 https://deb.nodesource.com/node_12.x focal InRelease                                                                            
Hit:4 http://in.archive.ubuntu.com/ubuntu focal-updates InRelease                                                                     
Hit:5 http://in.archive.ubuntu.com/ubuntu focal-backports InRelease                                                                   
Hit:6 http://security.ubuntu.com/ubuntu focal-security InRelease                                                                      
Hit:7 https://brave-browser-apt-release.s3.brave.com stable InRelease                                                                 
Hit:8 http://archive.canonical.com/ubuntu focal InRelease                                                                             
Ign:9 https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.0 InRelease                                           
Hit:10 http://ppa.launchpad.net/dawidd0811/neofetch/ubuntu focal InRelease         
Err:11 https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.0 Release 
  404  Not Found [IP: 99.86.42.60 443]
Hit:12 http://ppa.launchpad.net/maarten-baert/simplescreenrecorder/ubuntu focal InRelease
Hit:13 http://ppa.launchpad.net/obsproject/obs-studio/ubuntu focal InRelease
Hit:14 http://ppa.launchpad.net/ubuntuhandbook1/apps/ubuntu focal InRelease
Reading package lists... Done                      
E: The repository 'https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.0 Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

sudo-apt upgrade

voidRealm@voidRealm:~$ sudo apt upgrade 
^Citing for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 4557 (synaptic)... 16s

答案1

這是一個經典的誤解:

為了適應,一個破碎的包並不意味著它已損壞或有缺陷。這只是一個不相容的版本

一般來說,不要嘗試刪除或卸載「損壞的」軟體包。有時可以,但有時這樣做會刪除其他套件。這就是 apt 依賴鏈。

當人們在網路上閱讀有關如何取得最新或最新軟體的建議時,通常會發生這種錯誤。

解決問題的最佳方法是撤銷您所做的任何更改:恢復原始 Ubuntu 儲存庫並刪除提供損壞軟體包的非 Ubuntu 來源和 PPA。然後通常可以告訴 apt (重新)安裝損壞的軟體包的兼容版本,從而解決問題。

相關內容