AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-957417

make_me_an_island's questions

Martin Hope
make_me_an_island
Asked: 2020-04-13 09:53:33 +0800 CST

Ubuntu 18.04。无法安装 libx11-dev。无法纠正问题,您持有损坏的包裹[重复]

  • 0
这个问题在这里已经有了答案:
无法纠正问题,你拿着坏了的包裹 (15个回答)
如何恢复默认存储库? (4 个回答)
2年前关闭。

所以我正在尝试编译 Aseprite,但我无法在此过程中安装我需要的包:libx11-dev。这是“sudo apt install libx11-dev”的输出

sudo apt install libx11-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libx11-dev : Depends: libx11-6 (= 2:1.6.4-3ubuntu0.1) but 2:1.6.4-3ubuntu0.2 is to be installed
              Depends: libxcb1-dev but it is not going to be installed
              Recommends: libx11-doc but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

有两个未满足的依赖项。接下来我尝试安装第一个依赖项 libx11-6

sudo apt install libx11-6
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libx11-6 is already the newest version (2:1.6.4-3ubuntu0.2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

可以看到已经安装好了,也是最新版本,2:1.6.4-3ubuntu0.2。正如您在第一条消息中看到的,这似乎是必需的版本。第二个“未满足”的依赖项也会出现类似的问题。

看来问题是我拿着破损的包裹。我已经尝试了很多方法来解决这个问题,但据我所知,我没有拿着任何破损的包裹。当我尝试:

dpkg --get-selections | grep hold

没有输出。同样,“sudo apt install -f”也不能解决任何问题。

这里有更多可能有帮助的输出

cat /etc/apt/sources.list
# deb cdrom:[Ubuntu 18.04.3 LTS _Bionic Beaver_ - Release amd64 (20190805)]/ bionic main restricted
deb-src http://archive.ubuntu.com/ubuntu bionic main restricted #Added by software-properties

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://fi.archive.ubuntu.com/ubuntu/ bionic main restricted
deb-src http://fi.archive.ubuntu.com/ubuntu/ bionic universe main restricted multiverse

## Major bug fix updates produced after the final release of the
## distribution.
# deb-src http://fi.archive.ubuntu.com/ubuntu/ bionic-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://fi.archive.ubuntu.com/ubuntu/ bionic universe
# deb-src http://fi.archive.ubuntu.com/ubuntu/ bionic universe
# deb-src http://fi.archive.ubuntu.com/ubuntu/ bionic-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://fi.archive.ubuntu.com/ubuntu/ bionic multiverse
# deb-src http://fi.archive.ubuntu.com/ubuntu/ bionic multiverse
# deb-src http://fi.archive.ubuntu.com/ubuntu/ bionic-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb-src http://fi.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu bionic partner
deb-src http://archive.canonical.com/ubuntu bionic partner

deb http://security.ubuntu.com/ubuntu bionic-security main restricted
deb-src http://security.ubuntu.com/ubuntu bionic-security universe main restricted multiverse
deb http://security.ubuntu.com/ubuntu bionic-security universe
# deb-src http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu bionic-security multiverse
# deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse
# deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse

和

cat /etc/apt/sources.list.d/*
deb http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic main
deb-src http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic main
deb http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic main
deb-src http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic main
deb http://ppa.launchpad.net/jtaylor/keepass/ubuntu bionic main
deb-src http://ppa.launchpad.net/jtaylor/keepass/ubuntu bionic main
deb http://ppa.launchpad.net/jtaylor/keepass/ubuntu bionic main
deb-src http://ppa.launchpad.net/jtaylor/keepass/ubuntu bionic main
deb http://ppa.launchpad.net/libretro/stable/ubuntu bionic main
deb-src http://ppa.launchpad.net/libretro/stable/ubuntu bionic main
deb http://ppa.launchpad.net/libretro/stable/ubuntu bionic main
deb-src http://ppa.launchpad.net/libretro/stable/ubuntu bionic main
deb http://ppa.launchpad.net/pedrocastro/ppa/ubuntu bionic main
deb-src http://ppa.launchpad.net/pedrocastro/ppa/ubuntu bionic main
deb http://ppa.launchpad.net/pedrocastro/ppa/ubuntu bionic main
deb-src http://ppa.launchpad.net/pedrocastro/ppa/ubuntu bionic main
package-management dependencies apt 18.04 held-packages
  • 1 个回答
  • 1998 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve