Tag: 包管理

什么是Ubuntu保留旧内核的政策

我刚刚用完了磁盘空间。 回顾一下这种情况,我意识到自从第一次安装12.04以来,Ubuntu已经将内核升级了大约23次并且保留了每个旧的内核,二进制文件和头文件源 。 我只是手动apt-get purge -ed除了最后一对之外,节省了~4Gb空间(在20Gb分区上,所以这很重要)。 为什么Ubuntu想要保留所有这些? 是否缺少“保持最后4”这样的function还是有其他原因?

如何确定是否安装了特定程序?

我想知道是否在Ubuntu上安装了一个程序 – 例如Chromium。 手动或作为一个包。 我怎么知道程序是否通过命令行安装?

升级到12.04后修复损坏的myslq-server软件包

升级到12.04之后mysql服务器无法启动。 我尝试了许多不同的东西,但没有运气。 现在,当我尝试安装它时,我得到: $ sudo apt-get install mysql-server-5.5 Reading package lists… Done Building dependency tree Reading state information… Done Suggested packages: tinyca The following NEW packages will be installed: mysql-server-5.5 0 upgraded, 1 newly installed, 0 to remove and 39 not upgraded. Need to get 0 B/8,708 kB of archives. After this operation, 31.3 MB […]

如何检测和删除通过pip安装的Python包?

我使用pip而不是apt-get意外地将Python软件包安装到我的系统中。 我这样做有两种方式: 使用较旧版本的virtualenv,我忘记在创建virtualenv时附加–no-site-packages – 之后我调用pip install ,Python软件包安装到系统而不是virtualenv 在正确设置virtualenv中,我键入sudo pip install somepackage – 安装到系统的sudo而不是virtualenv 我碰巧注意到了这一点,因为我在virtualenv之外输入了pip freeze ,并发现了一些不应该存在的Python包。 所以现在我的问题是: 如何识别系统上错误安装的所有Python包(即pip freeze列表中出现的Python包,但未使用apt-get安装)? 我该如何删除它们?

失败的包管理器?

我正在尝试在重新安装操作系统后下载kcachegrind。 但我一直在“依赖”失败。 我试过通过Ubuntu软件管理器(之前工作得很好……)和Synaptic。 使用synaptic,我得到了特定的包失败,当我搜索包时,我得到了更多的包依赖。 在第五次之后,我放弃了,因为必须有其他事情发生。 请帮忙?

升级在ttf-mscorefonts-installer上挂起

我正在尝试从11.10升级到12.04并且升级似乎无法下载ttf-mscorefonts。 有没有办法绕过这个? 来自/ var / log / dist-upgrade的输出 Installing new version of config file /etc/xdg/autostart/print-applet.desktop … Setting up ubuntu-wallpapers-precise (0.34.1) … Setting up ubuntu-wallpapers (0.34.1) … Setting up adium-theme-ubuntu (0.3.2-0ubuntu1) … Setting up update-manager-core (1:0.156.14) … Installing new version of config file /etc/update-manager/release-upgrades … Setting up update-notifier-common (0.119ubuntu8.1) … ttf-mscorefonts-installer: downloading http://downloads.sourceforge.net/corefonts/andale32.exe — 0:precise — […]

无法安装软件 – 我可以修复丢失的dpkg吗?

无法安装新软件,因为当前安装的软件存在问题。 你想现在修理吗? 打Repair Package operation failed The installation or removal of a software package failed. Details => installArchives()failed:Could not exec dpkg! Error in function (synaptic:12725): GLib-CRITICAL **: g_child_watch_add_full: assertion ‘pid > 0’ failed Could not exec dpkg! E: Sub-process /usr/bin/dpkg returned an error code (100) A package failed to install. Trying to recover: sh: 1: […]

无法安装统一调整工具

我试过多次通过终端安装Unity调整工具,但每次它给我以下输出。 同样,我无法通过Ubuntu软件中心安装它。 我试过sudo apt-get install -f和sudo apt-get install unity-tweak-tool 。 使用终端时的输出如下: nikunj@nikunj-DL-H61MXE-V:~$ sudo apt-get install unity-tweak-tool [sudo] password for nikunj: Reading package lists… Done Building dependency tree Reading state information… Done The following NEW packages will be installed: unity-tweak-tool 0 upgraded, 1 newly installed, 0 to remove and 170 not upgraded. Need to get 0 […]

手动内核更新是否会影响下一次定期自动更新?

我从http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.4.8-wily/手动安装了内核4.4.8来规避错误。 现在我想知道当这个内核通过自动更新正式分发时会发生什么: 这会导致冲突吗? 是否有必要事先手动卸载内核? 这会影响未来的更新吗? 我的意思是由手动安装的内核打破的更新行?

将软件包列入黑名单

我正在运行10.10并删除了一个包。 我担心在升级时,synaptic可能会再次安装该软件包。 有没有办法将一个即使通过分发升级工作的软件包列入黑名单? 就我而言,包是单声道的。