Tag: package management

sudo apt get update给出错误 – 包缓存文件已损坏

vegan@vegan:~$ sudo apt-get update Hit:1 http://ppa.launchpad.net/fish-shell/release-2/ubuntu xenial InRelease Ign:2 http://dl.google.com/linux/chrome-remote-desktop/deb stable InRelease Ign:3 http://archive.ubuntu.com/ubuntu precise InRelease Get:4 http://security.ubuntu.com/ubuntu precise-security InRelease [55,7 kB] Get:5 http://archive.ubuntu.com/ubuntu precise-updates InRelease [55,7 kB] Ign:6 http://dl.google.com/linux/chrome/deb stable InRelease Hit:7 https://deb.nodesource.com/node_6.x xenial InRelease Hit:8 http://archive.ubuntu.com/ubuntu precise-backports InRelease Get:9 http://dl.google.com/linux/chrome-remote-desktop/deb stable Release [1.187 B] Get:10 http://archive.ubuntu.com/ubuntu precise Release [49,6 kB] Get:11 http://archive.ubuntu.com/ubuntu precise […]

依赖性错误阻止所有APT命令运行,“程序包libappstream-glib8:amd64尚未配置”

我正在使用Ubuntu 16.04并且在尝试安装新应用程序或更新系统时,我一直收到Sub-process /usr/bin/dpkg returned an error code 。 这似乎正在发生,因为我在更新时意外关闭了计算机。 我是Ubuntu的新手并且一直试图自己解决这个问题,但似乎在我的技术知识之外如何基于阅读类似的错误并且我害怕做更多的伤害。 它似乎与出现的错误有关。 Package libappstream-glib8:amd64 is not configured yet. 阻止其他进程工作。 我认为这可能是一个损坏的软件? 以下是中断更新的日志以及重启笔记本电脑后的更新 Start-Date: 2016-11-30 12:21:58 Commandline: aptdaemon role=’role-commit-packages’ sender=’:1.138′ Install: libhybris:amd64 (0.1.0+git20151016+6d424c9-0ubuntu7, automatic), linux-headers-4.4.0-51-generic:amd64 (4.4.0-51.72, automatic), libhybris-common1:amd64 (0.1.0+git20151016+6d424c9-0ubuntu7, automatic), libmedia1:amd64 (0.1.0+git20151016+6d424c9-0ubuntu7, automatic), snap-confine:amd64 (1.0.43-0ubuntu1~16.04.1, automatic), libhardware2:amd64 (0.1.0+git20151016+6d424c9-0ubuntu7, automatic), linux-headers-4.4.0-51:amd64 (4.4.0-51.72, automatic), linux-signed-image-4.4.0-51-generic:amd64 (4.4.0-51.72, automatic), linux-image-4.4.0-51-generic:amd64 (4.4.0-51.72, automatic), […]

如何欺骗apt依赖?

可能重复: 如何创建自动安装其他包的元包? 我想使用Frescobaldi(Lilypond的编辑),但在官方回购中,lilypond(2.12.3; lilypond就像TeX for scoreheets)的打包版本有点陈旧,因为我想使用一些全新的function。 所以我只是克隆了他们的git repo并从那里安装了它。 现在我的问题是,我怎么能告诉我,我手动满足了对lilypond的依赖,所以它不会尝试安装另一个副本?

dpkg重新配置问题

我在使用apt安装软件包时遇到了一些问题。 终端在安装过程中挂断了,除了关闭终端外我别无选择。 然而,问题是我似乎无法解决这导致的问题。 通常,我得到: E: Could not get lock /var/lib/dpkg/lock – open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? 这让我无处可去,我被锁定,直到我运行sudo dpkg –configure -a 。 说得通。 但是,此过程会吐出以下内容,然后挂起最后一行: Setting up virtualbox-dkms (5.2.10-dfsg-6) … Removing old virtualbox-5.2.10 DKMS files… ——– Uninstall Beginning ——– Module: virtualbox Version: 5.2.10 Kernel: […]

无法找到预期的条目’main / binary-i386 / Packages – Chrome

我最近注意到在安装一些软件包并使用命令apt-get update遇到了以下错误: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release Unable to find expected entry ‘main/binary-i386/Packages’ in Release file (Wrong sources.list entry or malformed file) 正如最近关于Ask Ubuntu的问题所述,Chrome将不再受32位系统的支持,但我目前正在运行64位Ubuntu 14.04,其中包含libc6:i386 libncurses5:i386 libstdc++6:i386已安装32位应用程序支持。 我是否看到此错误,因为dpkg正在寻找上述安装libc6:i386的i386软件包libc6:i386 libncurses5:i386 libstdc++6:i386 ? 我该如何解决这个错误? 编辑 – (我无法通过简单地更新Chrome来解决这个问题,就像在另一个post中提到的那样,而且在我发布这个post的时候并没有出现其他答案中的所有信息)。

如何让Scilab 6.0.1在Ubuntu 18.04 LTS上运行?

我安装了干净的Ubuntu MATE 18.04 LTS,并在此处从存储库安装了Scilab sudo apt-get update sudo apt-get install scilab 安装后我尝试从GUI( 应用程序→其他→Scilab )启动它 – 它无法启动。 然后我尝试用scilab命令从终端启动它。 终端输出如下: $ scilab /usr/bin/scilab-bin: error while loading shared libraries: libjava.so: cannot open shared object file: No such file or directory 所以它找不到Java。 我报告了有关此问题的错误1762999 。 我检查了libjava.so存在: $ dpkg -S libjava.so openjdk-11-jre-headless:amd64: /usr/lib/jvm/java-11-openjdk-amd64/lib/libjava.so 所以它到位了。 我应该怎么做才能让Scilab 6.0.1在Ubuntu 18.04 LTS上运行?

14.10葡萄酒和fglrx冲突

我刚刚从14.04更新到14.10,并且遇到了安装wine和fglrx的问题 导致问题的葡萄酒依赖性就像这样 wine> wine1.6> wine1.6-amd64>(ocl-icd-libopencl1(> = 1.0)| libopencl1)&&(ocl-icd-libopencl1(> = 1.0)| libopencl-1.1-1) fglrx> fglrx-core>与libopencl1冲突&&取代libopencl1 我已经尝试改变葡萄酒包文件以删除依赖关系,但最终变得困惑,我已经搜索互联网试图让它忽略这个问题,但我不能让它工作 任何帮助将非常感激 编辑我发现了2个与此相关的错误报告 – https://bugs.launchpad.net/ubuntu/+source/wine1.6/+bug/1376587&https://bugs.launchpad.net/ubuntu/+source/的fglrx-安装/ +错误/ 1129409

限制回购某个拱门?

我有几个没有armhf二进制文件的存储库(用于RPi交叉编译器),所以apt-get总是在更新包列表时给出了大量的404错误。 它还阻止我运行do-release-upgrade因为它找不到armhf编译的系统二进制文件,它不需要也无法运行。 我正在寻找一种方法告诉它只搜索某些存储库中的特定拱门,这样我就可以在apt-get update上修复404的大量墙。 谷歌没有帮助; 所以据我所知,这不是一个骗局; 可能与之相关的一个问题是关于GPG错误,我没有错误。 的sources.list: # deb cdrom:[Ubuntu 13.10 _Saucy Salamander_ – Release amd64 (20131016.1)]/ saucy main restricted # deb cdrom:[Ubuntu 13.10 _Saucy Salamander_ – Release amd64 (20131016.1)]/ saucy main restricted # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://archive.ubuntu.com/ubuntu trusty main restricted i386 amd64 […]

“Unmet依赖项”尝试在Ubuntu 15.04上安装KDE Plasma 5.3时

我正在尝试在这里安装最新的KDE Plasma,但我得到了 You might want to run ‘apt-get -f install’ to correct these. The following packages have unmet dependencies: kde-telepathy-minimal: Depends: kde-config-telepathy-accounts (>= 0.9.0) but it is not installed E: Unmet dependencies. Try using -f. 当我按照规定sudo apt-get -f install ,我说Y得到122KB的档案我得到: Preparing to unpack …/kde-config-telepathy-accounts_15.04.0-0ubuntu1~ubuntu15.04~ppa1_amd64.deb … Unpacking kde-config-telepathy-accounts (15.04.0-0ubuntu1~ubuntu15.04~ppa1) … dpkg: error processing archive /var/cache/apt/archives/kde-config-telepathy-accounts_15.04.0-0ubuntu1~ubuntu15.04~ppa1_amd64.deb (–unpack): […]

什么更可靠 – apt-mark或APT-pin(/etc/apt/preferences.d/pin)用于版本锁定?

通常在我的Ubuntu 16.04 LTS上,我锁定具有APT-pinfunction的封装版本。 例如,如果我想meld版本固定为版本1.5.3-1ubuntu1,我创建以下pin文件: cat <<EOF | sudo tee /etc/apt/preferences.d/pin-meld Package: meld Pin: version 1.5.3-1ubuntu1 Pin-Priority: 1337 EOF 此文件适用于系统范围的设置: apt , apt-get , aptitude和GUI工具,如synaptic和muon尊重它。 我知道其他机制 – apt-mark 。 我们假设。 我的出发点 – 我手动安装了meld_1.5.3-1ubuntu1 ,它的引脚被移除了。 $ apt-mark showhold $ apt-cache policy meld meld: Installed: 1.5.3-1ubuntu1 Candidate: 3.14.2-1 Version table: 3.14.2-1 500 500 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages 500 […]