相关疑难解决方法(0)

无法纠正问题,您持有破损的包裹

从 10.04 升级到 12.04 后,我尝试安装不同的软件包。例如 ia32-libs 和 Skype (4.0)。

尝试安装这些时,我收到“无法纠正问题,您保存了损坏的软件包”错误消息。

命令的输出:

sudo apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Run Code Online (Sandbox Code Playgroud)

运行后:

sudo dpkg --configure -a
foo@foo:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Run Code Online (Sandbox Code Playgroud)

apt

315
推荐指数
9
解决办法
103万
查看次数

如何修复 apt 错误“W:目标包...配置多次”?

我刚刚安装了 Ubuntu Gnome 16.04。我告诉它保存我的文件 - 有效。有些软件必须重新安装。现在,当我运行时,sudo apt-get update我看到:

W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:33 and /etc/apt/sources.list:87
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:33 and /etc/apt/sources.list:87
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:33 and /etc/apt/sources.list:87
W: Target Translations (main/i18n/Translation-en_GB) is configured multiple times in /etc/apt/sources.list:33 and /etc/apt/sources.list:87
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:33 and /etc/apt/sources.list:87
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:33 …
Run Code Online (Sandbox Code Playgroud)

apt

227
推荐指数
6
解决办法
27万
查看次数

如何修复“W:重复的sources.list条目”?

每当我尝试运行时,我都会收到此警告sudo apt-get update

W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ precise-updates/main i386 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_precise-updates_main_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems
Run Code Online (Sandbox Code Playgroud)

以下是/etc/apt/sources.list文件的输出:

deb http://archive.ubuntu.com/ubuntu precise main restricted
deb-src http://archive.ubuntu.com/ubuntu precise main restricted

deb http://archive.ubuntu.com/ubuntu precise-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu precise-updates main restricted

deb http://archive.ubuntu.com/ubuntu precise universe
deb-src http://archive.ubuntu.com/ubuntu precise universe
deb http://archive.ubuntu.com/ubuntu precise-updates universe
deb-src http://archive.ubuntu.com/ubuntu precise-updates universe

deb http://archive.ubuntu.com/ubuntu precise multiverse
deb-src http://archive.ubuntu.com/ubuntu precise multiverse
deb http://archive.ubuntu.com/ubuntu precise-updates multiverse
deb-src http://archive.ubuntu.com/ubuntu precise-updates …
Run Code Online (Sandbox Code Playgroud)

configuration apt software-sources

193
推荐指数
9
解决办法
36万
查看次数

如何修复错误 W: Target Packages (main/binary-amd64/Packages) 在我的 sources.list 文件中配置了多次?

我有 Ubuntu 16.04 Xenial Xerus,当我想运行sudo apt-get updateorsudo apt-get autocleansudo apt-get install (package name)or 时sudo apt-get install -f,我收到以下消息:

Citire liste de pachete... 0%
Citire liste de pachete... Terminat
Se construie?te arborele de dependen??       
Se citesc informa?iile de stare... Terminat
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:5
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:5
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:2 …
Run Code Online (Sandbox Code Playgroud)

apt

70
推荐指数
3
解决办法
19万
查看次数

“Ubuntu 软件”是否已重命名为“Snap Store”?

我昨晚更新了 Ubuntu ( sudo apt get update && sudo apt get upgrade),但令我惊讶的是,今天早上我没有找到“Ubuntu Software”应用程序,并且有一个名为“Snap Store”的新条目,打开时看起来就像旧的“Ubuntu Software”应用程序。

那么“Ubunu Software”是否已重命名为“Snap Store”?如果是,为什么?

software-center snap 20.04

43
推荐指数
3
解决办法
3万
查看次数

安装并尝试删除 Google Chrome 后出现依赖性错误

所以 ubuntu 对我来说完美地工作了一段时间。我试图下载谷歌浏览器,不小心下载了 32 位版本。返回并尝试下载 64 位(愚蠢地没有删除 32 位),并且开始在获取与google-chrome-stable.

我的下一步是清除我在 Ubuntu 上与 Chrome 相关的所有内容,但我仍然遇到这些错误,而且鉴于我仍然是 Linux 的新手,我真的不知道现在该做什么。

现在,我无法通过命令行下载任何东西。例如,我只是尝试下载 Ubuntu 版本的 f.lux 并得到以下内容:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  gcc-4.8-base:i386 libasn1-8-heimdal:i386 libasound2:i386
  libatk-bridge2.0-0:i386 libatk1.0-0:i386 libatspi2.0-0:i386
  libavahi-client3:i386 libavahi-common-data:i386 libavahi-common3:i386
  libcairo-gobject2:i386 libcairo2:i386 libcolord1:i386 libcups2:i386
  libcurl3:i386 libdatrie1:i386 libdbus-glib-1-2:i386 libdbusmenu-glib4:i386
  libdbusmenu-gtk3-4:i386 libdbusmenu-gtk4:i386 libexpat1:i386 libffi6:i386
  libfontconfig1:i386 libfreetype6:i386 libgconf-2-4:i386 libgcrypt11:i386
  libgdk-pixbuf2.0-0:i386 libglib2.0-0:i386 libgnutls26:i386
  libgpg-error0:i386 libgraphite2-3:i386 libgssapi-krb5-2:i386
  libgssapi3-heimdal:i386 libgtk-3-0:i386 libgtk2.0-0:i386 libharfbuzz0b:i386 …
Run Code Online (Sandbox Code Playgroud)

package-management apt dpkg google-chrome

41
推荐指数
3
解决办法
50万
查看次数

Ubuntu sudo apt get update 404 Not Found问题

我正在使用 Ubuntu 20.04.3 LTS。我已经遇到错误 2 天了,即由于以下错误,我无法在系统上更新或升级或执行软件包安装:

Hit:1 http://packages.microsoft.com/repos/code stable InRelease                                                                   
Hit:2 http://archive.canonical.com/ubuntu focal InRelease                                                                         
Hit:3 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal InRelease                                                              
Hit:4 http://dl.google.com/linux/chrome/deb stable InRelease                                                                      
Ign:5 http://old-releases.ubuntu.com/ubuntu focal InRelease                                                                       
Ign:6 http://old-releases.ubuntu.com/ubuntu focal-updates InRelease                                                               
Hit:7 http://ppa.launchpad.net/kicad/kicad-5.1-releases/ubuntu focal InRelease                                                    
Hit:8 https://deb.opera.com/opera-stable stable InRelease                                                                         
Hit:9 https://packages.microsoft.com/repos/vscode stable InRelease                                                                
Ign:10 http://old-releases.ubuntu.com/ubuntu focal-backports InRelease                                                            
Ign:11 http://ppa.launchpad.net/team-gcc-arm-embedded/ppa/ubuntu focal InRelease                                           
Ign:12 http://old-releases.ubuntu.com/ubuntu focal-security InRelease                                                      
Err:14 http://old-releases.ubuntu.com/ubuntu focal Release                                                                        
  404  Not Found [IP: 91.189.88.247 80]
Err:15 http://ppa.launchpad.net/team-gcc-arm-embedded/ppa/ubuntu focal Release                                                    
  404  Not Found [IP: 91.189.95.85 80]
Err:16 http://old-releases.ubuntu.com/ubuntu focal-updates Release                                                           
  404  Not …
Run Code Online (Sandbox Code Playgroud)

updates repository 20.04

37
推荐指数
1
解决办法
16万
查看次数

E: 部分索引文件下载失败。它们已被忽略,或者在 apt-get update 后使用旧的

我的/etc/apt/sources.list包含:

nazar_art@nazar-desctop:/etc/apt$ cat source.list
deb http://security.ubuntu.com/ubuntu precise-security main universe
nazar_art@nazar-desctop:/etc/apt$ cat sources.list.old
deb http://archive.ubuntu.com/ubuntu precise universe
nazar_art@nazar-desctop:/etc/apt$ cat source.list
deb http://security.ubuntu.com/ubuntu precise-security main universe
nazar_art@nazar-desctop:/etc/apt$ 
Run Code Online (Sandbox Code Playgroud)

我根据这篇文章更新了如何恢复默认存储库?

但是当我运行时它调用了另一个问题sudo apt-get update我有一些这样的输出:

Err http://ua.archive.ubuntu.com main/restricted Sources                       
  404  Not Found [IP: 91.189.91.13 80]
Err http://ua.archive.ubuntu.com main/universe Sources                         
  404  Not Found [IP: 91.189.91.13 80]
Err http://ua.archive.ubuntu.com main/multiverse Sources                       
  404  Not Found [IP: 91.189.91.13 80]
Err http://ua.archive.ubuntu.com main/restricted amd64 Packages                
  404  Not Found [IP: 91.189.91.13 80]
Err http://ua.archive.ubuntu.com main/universe amd64 Packages …
Run Code Online (Sandbox Code Playgroud)

apt repository

26
推荐指数
3
解决办法
27万
查看次数

从命令行恢复sources.list中的默认apt存储库

我正在寻找/etc/apt/sources.list从命令行恢复到默认值的最佳方法。

有没有办法引用生成这个文件的包的源代码或类似的东西?我想要一种受信任且与版本无关的方式来恢复此文件。

排除的解决方案

在将其标记为重复之前,请注意我已经查看了此问题。仅当您有可用的 Ubuntu GUI 时才适用。这个问题特定于命令行。

我还审查了这个问题,其中接受的解决方案是有人粘贴了他们sources.list文件的内容。这不是恢复文件的适当方法,因为无法验证提供文件内容的人的意图,并且该文件可能会随着新版本而更改。

在 simplelinux.ch 上查看了生成器,但这也不是来自 Ubuntu,所以我不打算使用它。

command-line apt repository

21
推荐指数
2
解决办法
6万
查看次数

更新 apt 存储库时出现 Ubuntu 64 位“无法获取文件 [..] binary-i386/Packages”错误

我在 64 位机器上的 Ubuntu 12.04 LTS 上遇到以下问题:每当我尝试更新 aptitude 存储库时,更新都会奇怪地失败并出现 i386-related error。我认为这不应该发生在 64 位系统上。

root@liv-HP-Compaq-dc7900:/home/liv# apt-get update
Ign file: apt-build Release.gpg
Get:1 file: apt-build Release [107 B]                                          
Ign file: apt-build/main TranslationIndex                                      
Err file: apt-build/main i386 Packages                                         
  File not found
[..]
W: Failed to fetch file:/var/cache/apt-build/repository/dists/apt-build/main/binary-i386/Packages  File not found

E: Some index files failed to download. They have been ignored, or old ones used instead.
Run Code Online (Sandbox Code Playgroud)

我试图恢复但status-old没有运气:

sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status

我也试过:

root@liv-HP-Compaq-dc7900:/home/liv# apt-get -f install
Reading package lists... Done …
Run Code Online (Sandbox Code Playgroud)

64-bit update-manager apt

12
推荐指数
2
解决办法
3万
查看次数