Tag: dpkg

dpkg-divert:错误:重命名涉及用不同的文件`/usr/lib/xorg/protocol-precise.txt’覆盖`/usr/lib/xorg/protocol.txt’,不允许

我刚刚安装了Ubuntu(12.04.4)并升级到13.10 我不知道如何解决这个问题:/ $ sudo apt-get install -f Reading package lists… Done Building dependency tree Reading state information… Done The following packages will be REMOVED: xserver-common-lts-saucy 0 upgraded, 0 newly installed, 1 to remove and 2 not upgraded. 1 not fully installed or removed. After this operation, 1,718 kB disk space will be freed. Do you […]

无法在12.04 64位上运行“dpkg –add-architecture i386”来运行eclipse ADT

运行ubuntu 12.04 64位。 我正在尝试按照标题:安装Android SDK compat库下的本页末尾所写的步骤进行操作。 我这样做是为了解决这个问题。 但是当我运行第一个命令时 sudo dpkg –add-architecture i386 它失败并提供以下输出: pkg: error: unknown option –add-architecture Type dpkg –help for help about installing and deinstalling packages [*]; Use `dselect’ or `aptitude’ for user-friendly package management; Type dpkg -Dhelp for a list of dpkg debug flag values; Type dpkg –force-help for a list of […]

从dpkg恢复所有数据和依赖项–set-selections’*’

所以我可以在一台机器上运行: dpkg –get-selections ‘*’ > selection.txt 在另一台机器上: dpkg –set-selections < selection.txt …后跟以下任一项: aptitude install apt-get -u dselect-upgrade …安装包。 但是,似乎某些信息在进程中丢失了,例如一个包(比如xyz )是否自动安装为另一个包( abc )的依赖项。 你可以看到,每当你做apt-get –purge remove abc类的东西时, apt-get –purge remove abc 。 在原始计算机上,您将收到通知,包xyz已作为abc依赖项安装,并且您可以使用apt-get autoremove来删除它。 现在我知道deborphan和debfoster ,但考虑到手头的(简单)任务,它们使用起来很麻烦。 似乎保存和恢复如上所示的选择不足以恢复已安装软件包的细微依赖关系。 有没有办法备份包管理的完整元数据集,然后将其全部还原?

dpkg:错误:在第0行附近解析文件’/ var / lib / dpkg / available’

一直试图安装git-core软件包几乎超过半天。 每次我这样做,我都会收到此错误: dpkg: error: parsing file ‘/var/lib/dpkg/available’ near line 0: newline in field name `../../../../../share/pyshared/UpdateManager/Core/__init__.py’ 我也试过运行sudo apt-get update和sudo apt-get install –fix-missing 。 即使尝试重新启动并清理apt-get缓存,仍然无法正常工作。

无法在Ubuntu 14.04 64位上安装Skype 4.3

首先,我认为这个问题没有重复,因为我已经尝试了我在这里找到的所有其他解决方案,但没有解决我的问题。 我使用Ubuntu 14.04 64位。 我一直试过直到现在: sudo apt-get install skype – >它没用 。 错误是: The following packages have unmet dependencies: skype : Depends: skype-bin E: Unable to correct problems, you have held broken packages. 我已经尝试了sudo dpkg add-architecture && sudo dpkg -i skype-ubuntu-precise_4.3.0.37-1_i386.deb但它也没有用。 错误是: dpkg: dependency problems prevent configuration of skype: skype depends on libqt4-dbus (>= 4:4.5.3); […]

丢失/删除dpkg(Debian的包管理器)。 我怎样才能找回来?

操作系统:Ubuntu 12.04 意外删除了dpkg 。 现在,无法安装软件包。 因此,需要安装软件包的dpkg安装程序。

如何创建自动安装其他包的元包?

我希望能够创建一个不包含任何代码或程序本身的软件包,而是将存储库中存在的其他软件包安装到计算机上,这与ubuntu-restricted-extras软件包的工作方式有关吗?

安装并尝试删除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 […]

如何删除/安装未完全安装的软件包?

前几天我去安装bsnes,无论出于什么原因安装失败了。 现在,我无法更新,安装新软件包,或基本上执行任何apt-get命令,因为它们都试图处理这个损坏的软件包并失败。 试图安装一个新的软件包也只是让它陷入了同样的命运。 我得到的错误是: Setting up google-chrome-stable (33.0.1750.152-1) … /var/lib/dpkg/info/google-chrome-stable.postinst: 124: /var/lib/dpkg/info/google-chrome-stable.postinst: update-alternatives: not found dpkg: error processing google-chrome-stable (–configure): subprocess installed post-installation script returned error exit status 127 Setting up bsnes (0.088-7) … /var/lib/dpkg/info/bsnes.postinst: 5: /var/lib/dpkg/info/bsnes.postinst: update-alternatives: not found dpkg: error processing bsnes (–configure): subprocess installed post-installation script returned error exit status 127 Errors […]

如何重建损坏的dpkg状态文件?

每当我键入sudo apt-get remove然后按Tab键进行自动完成时,我会收到以下消息: grep-status: /var/lib/dpkg/status:15945: expected a colon . 我没有在状态文件中的第15945行看到任何特别奇怪的内容。 它是单声道程序包的描述字段中的点字符,插入冒号没有帮助。 删除包含点的行也不起作用。 使用status-old覆盖文件会产生相同的消息。 有没有办法重建状态文件?