Tag: package management

如何安全的deb http://debian.nfgd.net/debian unstable main?

安装这两个包的安全性如何? root@dur:/home/thufir# root@dur:/home/thufir# tail /etc/apt/sources.list ## This software is not part of Ubuntu, but is offered by third-party ## developers who want to ship their latest software. deb http://extras.ubuntu.com/ubuntu oneiric main # deb-src http://extras.ubuntu.com/ubuntu oneiric main deb http://archive.ubuntu.com/ubuntu oneiric multiverse restricted universe main deb http://debian.nfgd.net/debian unstable main root@dur:/home/thufir# root@dur:/home/thufir# aptitude search dbmail p dbmail – […]

apt-get命令因libpython3.3 unmet依赖而失败

操作系统:Ubuntu 14.04,amd_x64。 apt-get命令如install,remove和purge失败,错误与下面所示相同 但是update和clean等命令工作正常。 不确定如何解决问题。 看看我的终端会议。 $ sudo apt-get install –reinstall lightdm Reading package lists… Building dependency tree… Reading state information… You might want to run ‘apt-get -f install’ to correct these: The following packages have unmet dependencies: libpython3.3 : Depends: python3.3 (= 3.3.6-1+trusty1) but 3.3.2-7ubuntu4 is to be installed E: Unmet dependencies. Try ‘apt-get […]

/ usr / bin / dpkg在删除和安装损坏的软件包时返回错误

我试图删除不稳定的openoffice并重新安装libreoffice然而我在清除它之前意外删除了/opt下的openoffice目录。 现在我无法清理损坏的包,也无法删除/安装libreoffice 。 apt-get -f install不能用于错误: …. Errors were encountered while processing: /var/cache/apt/archives/libreoffice-common_1%3a4.2.7-0ubuntu2_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1) 我按照如何通过dpkg手动删除包来修复损坏的包 ,但它没有将其删除干净。 同样的问题仍然存在。 我有无法满足的依赖关系,我无法清理或向上移动: dpkg: error processing package libreoffice-calc (–configure): dependency problems – leaving unconfigured Errors were encountered while processing: libreoffice-java-common libreoffice-sdbc-hsqldb libreoffice-core python3-uno libreoffice-math libreoffice-impress libreoffice-writer libreoffice-base-core libreoffice-gnome libreoffice-base libreoffice-sdbc-firebird libreoffice-report-builder-bin libreoffice-pdfimport libreoffice-avmedia-backend-gstreamer […]

升级Ubuntu 18.04时出现dpkg错误(1)

这是apt-get upgrade输出: Reading package lists… Done Building dependency tree Reading state information… Done Calculating upgrade… Done The following packages have been kept back: linux-generic linux-headers-generic linux-image-generic 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded. 6 not fully installed or removed. After this operation, 0 B of additional disk space will be […]

“没有安装候选者,但是以下包替换它”循环

我在Ubuntu Wily上。 sudo apt-get install libavcodec56产生: Package libavcodec56 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: libavcodec-extra-56 在尝试安装该软件包之前,这很好,很花哨: Package libavcodec-extra-56 is not available, but is referred to by another […]

不能exec“locale”:/usr/share/perl5/Debconf/Encoding.pm第16行没有这样的文件或目录

请帮帮我,这是一个问题 Can’t exec “locale”: No such file or directory at /usr/share/perl5/Debconf/Encoding.pm line 16. Use of uninitialized value $Debconf::Encoding::charmap in scalar chomp at /usr/share/perl5/Debconf/Encoding.pm line 17. dpkg: warning: ‘ldconfig’ not found in PATH or not executable dpkg: error: 1 expected program not found in PATH or not executable Note: root’s PATH should usually contain /usr/local/sbin, /usr/sbin […]

如何让我的DEB安装libstdc ++。so.6.0.20?

在我的开发机器上,我有/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20; 在全新安装的Ubuntu 14.04上,我有/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19。 我正在创建一个DEB文件来安装我的应用程序,它正在安装应用程序本身,现在我希望我的DEB文件也安装必要的共享库(如libstdc ++。so.6.0.20) )。 该库是从包libstdc ++ 6安装的,但是默认存储库没有正确的版本,我必须添加ppa:ubuntu-toolchain -r / test存储库以获得正确的版本。 好像我需要添加这一行 Depends: libstdc++6:amd64 (= 4.9.2-0ubuntu1~14.04) 到我的DEBIAN /控制文件,但似乎如果没有告诉它关于存储库的话也行不通,我无法弄清楚如何做到这一点。 还是我咆哮着完全错误的树? 我想我假设如果我正确地设置了对libstdc ++ 6的依赖,它会出去上网并为我下载它,作为我的DEB安装程序的一部分? 谢谢,克里斯 ps我的DEB安装程序只能在内部使用,它将从USB记忆棒或类似设备复制到目标机器上,永远不会从互联网上下载…

Python 3无法正常工作

我最近从源代码安装了python 3.5,但我认为在安装或链接过程中我做错了。 在此之后,我在安装任何Ubuntu软件包时遇到问题。 例如,即使在重新安装软件属性 – common之后,add-apt-repository也不起作用。 $ add-apt-repository bash: /usr/bin/add-apt-repository: /usr/bin/python3: bad interpreter: No such file or directory 另外,apt-get install会给我这个错误 $ sudo apt-get install libraw-dev Reading package lists… Done Building dependency tree Reading state information… Done The following NEW packages will be installed: libraw-dev 0 upgraded, 1 newly installed, 0 to remove and 229 not […]

无法获取APT更新(不重复)

我已经检查了这个 , 这个和这个答案,在我的情况下它们都不起作用。 这是我在14.04 LTS笔记本电脑上运行sudo apt-get update时sudo apt-get update : Get:10 http://us.archive.ubuntu.com trusty-updates/universe i386 Packages [336 kB] Get:11 http://us.archive.ubuntu.com trusty-updates/multiverse i386 Packages [13.2 kB] Get:12 http://us.archive.ubuntu.com trusty-updates/main Translation-en [350 kB] Get:13 http://us.archive.ubuntu.com trusty-updates/multiverse Translation-en [6,832 B] Get:14 http://us.archive.ubuntu.com trusty-updates/universe Translation-en [176 kB] Get:15 http://us.archive.ubuntu.com trusty Release [58.5 kB] Get:16 http://us.archive.ubuntu.com trusty/main i386 Packages [14 B] […]

还原意外`dpkg –clear-selections`

我想“清除”所有仅被“删除”的软件包。 浏览dpkg的联机帮助页后,我认为–clear-selections参数可以解决问题。 所以愚蠢的我用sudo键入它,然后我再次检查选择状态并感到震惊。 dpkg选择了所有(非重要)已安装的软件包进行卸载! 这当然是我的错,但绝对不是故意的。 那么,我该怎么回复呢? 我仍然打开了终端窗口,在那里我运行了dpkg –get-selections | grep deinstall dpkg –get-selections | grep deinstall在安装之前 (85包)和之后 (2614包)意外命令。 我现在需要的是从第二个(当前)减去第一个(旧)卸载列表,并再次标记所有这些包。 将它们设置为manual将不会很好,因为这将影响数百个库,如果没有它们的应用程序安装就毫无意义。 因此我们必须将其设置为auto ,然后我可能必须手动找出要作为manual选择的顶级包。 或者可以帮助我吗? 信息:我有两个单独的文本文件,一个包含第一个–get-selections输出,一个包含第二个。 它们只包含具有以下语法的行: package-name deinstall 其中package-name是实际的包名,其间的空格是未定义的选项卡数。 更新:我刚刚在事故发生之前找到了dpkg –get-selections的输出而没有任何grep过滤! 之后只安装了两个软件包,稍后我可以手动修复它们。 请帮我恢复以前的套餐选择!