Tag: 包管理

安装软件时出现“程序包依赖关系无法解决”错误

安装媒体播放器包时遇到问题。 无法解析包依赖性 This error could be caused by required additional software packages which are missing or not installable. Furthermore there could be a conflict between software packages which are not allowed to be installed at the same time. Depends: libc6 (>= 2.7) but 2.13-0ubuntu13 is to be installed Depends: libglib2.0-0 (>= 2.24.0) but 2.28.6-0ubuntu1 is […]

如何设置apt-cacher服务器?

我有超过500个系统运行ubuntu 10.04,ubuntu 10.10和ubuntu 11.04。 由于带宽使用率高,我们很难从互联网上为这些机器安装新的软件包。 我打算设置一个apt-cacher服务器,这样它应该从本地机器安装软件包,而不是从互联网上安装软件包。 有人能给我一个干净的解决方案吗? 提前致谢。 服务器配置错误: root@karthick:~# sudo /usr/share/apt-cacher/apt-cacher-import.pl /var/cache/apt/archives Importing: acl_2.2.49-3_i386.deb Failed to rename acl_2.2.49-3_i386.deb. Try read-only (-r) or symlink (-s) options. at /usr/share/apt-cacher/apt-cacher-import.pl line 154. 客户端安装包时出错 有人可以整理一下吗?

全新安装后,Ubuntu 16.04破包

在全新安装Ubuntu 16.04后,我破坏了软件包,无法安装大多数应用程序。 我尝试从Synaptic“修复损坏的软件包”但它无法正常工作。 一个例子; sudo apt-get install steam 输出; Reading package lists… Done Building dependency tree Reading state information… Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been […]

如何在Ubuntu Server上安装一个GUI程序?

我在VirtualBox中使用Ubuntu Server 10.10。 我需要在其上安装一个GUI程序(RubyMine)。 我检查了用apt-get安装ubuntu-desktop ,它要我安装430个新软件包(包括OpenOffice)。 我首先安装了服务器,以尽可能保持安装! 如何进行最小安装( 所需的所有包)以运行该单个GUI程序? 我创建了一个文件/etc/apt/apt.conf并添加了以下内容: APT::Install-Recommends “0”; APT::Install-Suggests “0”; 但是sudo apt-get install ubuntu-desktop仍然说: 0 upgraded, 430 newly installed, 1 to remove and 9 not upgraded. Need to get 155MB of archives. After this operation, 542MB of additional disk space will be used. Do you want to continue [Y/n]? n

如何删除Unity以外的所有桌面环境?

我正在使用Ubuntu 12.04与许多桌面环境,如Unity,Gnome,Lubuntu,Xubuntu,Cinnamon等等。 现在我想删除除Ubuntu以外的所有内容,因为它们都在搞乱我的主要统一桌面。 所以我想保留ubuntu-desktop并希望删除所有其他。

包中缺少zsh手册页文档?

我有一个新安装的xubuntu 13.10 x64。 我决定通过synaptic安装zsh并将其设为我的默认shell。 安装的zsh的版本是: zsh 5.0.2 (x86_64-pc-linux-gnu)。 已安装的zsh看起来不错,但似乎没有zsh man文档。 输入命令man zsh给我这个: No manual entry for zsh. 我也从synaptic安装,除了zsh本身,zsh-lovers,zsh-doc,zsh-dbg。 我在zsh安装中错过了什么最终没有man文档的zsh ?

如何获取已安装的包文件?

我需要下载我在Ubuntu 11.10 x64上安装的所有软件包。 应该有/var/cache/apt/archives我知道,但是只有300 Mb的deb文件。 我安装了很多现在还没有的开发包。 我认为系统会自动清理缓存! 现在我想下载系统上安装的所有软件包,而不是默认安装的软件包。

您如何看待可用于更新的软件包

FreeBSD用户加入你的行列。 我被要求照顾运行10.04 LTS的Ubuntu服务器。 我从/usr/lib/update-notifier/update-motd-updates-available看到服务器上有很多更新但是我没有看到告诉哪些更新的方法。 有人能够指出我正确的方向,以便我可以看到当我运行apt-get upgrade时哪些包会更新? 更新: 目前无法回答我自己的问题所以暂时把它放在这里: 除了下面建议的apt-get upgrade –dry-run , /usr/lib/update-notifier/apt-check -p将列出所有可用更新的软件包。

如何创建安装一系列文件的deb软件包

我想创建一个全新的deb包来安装一系列文件。 如果可能的话,我想将包含这些文件的文件夹解压缩到已知文件夹位置作为安装的一部分。 如果做不到这一点,一些知识如何打包源文件夹和文件将是非常有用的。 问题是 – 这是可能的,如果可以的话 – 如何? 让我们举一个例子: ~/mypluginfolder/包含文件x , y ,一个名为abc的子文件夹,以及另一个名为z文件。 我想tar这个文件夹: tar -cvf myfiles.tar ~/mypluginfolder 我认为我的debian包看起来像 myfiles.tar.gz myfiles+ppafoss_0.1-1/ myfiles.tar DEBIAN changelog, compat, control, install, rules source 有可能以某种方式将myfiles.tar解压缩到例如已知的文件夹位置 /usr/share/rhythmbox/plugins/ 因此,最终结果将是: /usr/share/rhythmbox/plugins/mypluginfolder /usr/share/rhythmbox/plugins/mypluginfolder\x /usr/share/rhythmbox/plugins/mypluginfolder\y /usr/share/rhythmbox/plugins/mypluginfolder\abc\z 如果 – 假设启动板需要源,则建议我将源文件夹和文件放入deb包结构的位置。 这最终将成为一系列单独的启动板PPA包。 我更喜欢(但可能无法实现……)是将我的包装保持在最低限度 – 从模板创建一系列包并调整最低限度(更改日志等+ tar文件/文件和文件夹结构) 。

如何安装build-essential?

我想在Ubuntu 13.10中安装G ++编译器。 它告诉我,我需要安装build-essential包。 我试过下面的代码 sudo apt-get update sudo apt-get install build-essential 它给了我这个错误: Reading package lists… Done Building dependency tree Reading state information… Done E: Couldn’t find package build-essential