Tag: apt

由于“恶意发生了解决”错误,无法安装软件包

我按照这些说明在我的笔记本电脑上安装git。 当我做: $ sudo apt-get install git-core 这就是我的terinal所展示的: Reading package lists… Done Building dependency tree Reading state information… Done The following packages were automatically installed and are no longer required: libasprintf0c2:i386 libcroco3:i386 libgettextpo0:i386 libgomp1:i386 libunistring0:i386 Use ‘apt-get autoremove’ to remove them. The following extra packages will be installed: git git-man liberror-perl Suggested packages: git-daemon-run git-daemon-sysvinit […]

‘apt’如何确定要保留多少旧内核?

我正在为核心服务(NTP,DNS等)管理几个服务器,我刚刚发现其中一个服务器似乎保留了3个最新的内核,而不是其他2个内核: nul@quark:~$ sudo apt-get autoremove –purge Reading package lists… Done Building dependency tree Reading state information… Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. nul@quark:~$ dpkg -l |grep linux-image ii linux-image-3.13.0-51-generic 3.13.0-51.84 amd64 Linux kernel image for version 3.13.0 on 64 bit x86 SMP ii linux-image-3.13.0-52-generic 3.13.0-52.85 amd64 Linux kernel […]

为什么不apt-get autoremove删除我的旧内核?

我的启动分区在SSD上,因此它没有超过8个安装的内核版本的空间,并且最终一些内核更新将无法安装,因为我的启动分区充满了旧版本。 关于如何删除旧版本(甚至如何自动化过程)有很多问题,但我的问题很简单: 为什么apt-get autoremove不能自动检测并自动删除它们,有没有办法让我自己做它这样做 ? 我的意思是, apt-get无论如何都是安装它们的,所以它知道它们,所以它为什么选择留下所有旧版本?

如何在控制台上显示命令行的输出并将输出保存到文本文件中?

如何通过BOTH运行sudo apt-get install来查看安装过程(在我的情况下很长时间) 并将其输出保存到文本文件中?

如何列出系统中安装的所有应用程序?

我知道,我可以点击Super + A来查看Ubuntu中所有已安装的应用程序,但我需要一个命令来列出他们的名字。 命令 dpkg –get-selections | awk ‘{print $1}’ 也不是一个选项,因为它显示所有已安装的包,它包含驱动程序,内核和库。

我该如何解决dpkg依赖?

administrator@zlounes:~$ sudo apt-get dist-upgrade Reading package lists… Done Building dependency tree Reading state information… Done You might want to run ‘apt-get -f install’ to correct these. The following packages have unmet dependencies: linux-server : Depends: linux-headers-server (= 3.2.0.37.44) but 3.2.0.37.45 is installed E: Unmet dependencies. Try using -f. administrator@zlounes:~$ sudo apt-get -f install Reading package […]

从16.04升级到16.10后出现systemd-shim错误

将Ubuntu 16.04升级到16.10后出现了一个奇怪的错误。 软件更新程序建议部分更新: 无法安装’systemd-shim’ 升级将继续,但’systemd-shim’包可能不处于工作状态。 请考虑提交有关它的错误报告。 subprocess installed post-removal script returned error exit status 2 sudo apt-get update完成没有任何错误。 sudo apt-get remove输出这个 The following packages will be REMOVED: systemd-shim 0 to upgrade, 0 to newly install, 1 to remove and 0 not to upgrade. 1 not fully installed or removed. After this operation, 71.7 kB disk […]

APT方式获取适用于Linux的Adobe Flash Player最新版本无效

我正在运行Ubuntu 14.10并且我正在尝试获取最新版本的Adobe Flash Player for Linux(显然是11.2 ),我在这里APT for Ubuntu 10.04+选择APT for Ubuntu 10.04+选项: 但是当我点击“ Download按钮后单击“ Launch Application ”按钮时: 我刚刚在Ubuntu软件中心得到这个: 所以我的主要问题是,为什么会发生这种情况? 我能解决这个问题吗? 如果我无法修复此问题,如何获得最新版本的Adobe Flash Player?

如何绕过/忽略apt的gpg签名检查?

我访问的所有密钥服务器都超时了。 我需要安装包而不检查公钥的签名。 有没有办法绕过所有签名检查/忽略所有签名错误或傻瓜认为签名传递? 我很清楚这样做很危险

如何找出包来自哪个存储库?

是否有方法或命令可以告诉包来自哪个存储库?