Tag: apt

如何安装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

/etc/apt/sources.list.d中的文件是否需要扩展名为“.list”?

在/etc/apt/sources.list.d我有几个自定义存储库文件。 这些文件的所有名称都以.list结尾。 该文件夹中的文件是否必须以该扩展名结尾? 如果是,那信息写在哪里?

如何在具有可卸载依赖项的情况下安装32位库?

我正在尝试在Ubuntu 13.10上安装Adobe Air。 在这个版本的Ubuntu中,像ia32-libs和ia32-libs-multiarch这样的软件包不再可用,所以我正在尝试自己安装所需的32位库。 在运行./AdobeAIRInstaller.bin我遇到了一些关于缺少库的错误,其中大部分我使用sudo apt-get install :i386并且错误消失了。 我在修复最后两个丢失的模块时遇到了问题: Gtk-Message:无法加载模块“overlay-scrollbar” Gtk-Message:无法加载模块“unity-gtk-module” 我尝试使用apt安装overlay-scrollbar-gtk2:i386 : overlay-scrollbar-gtk2:i386:取决于:overlay-scrollbar:i386但它不可安装 嗯,这取决于无法安装的包。 多么不方便。 所以我尝试使用Googling前往Saucy的32位覆盖滚动条库, 我在这里找到了 。 首先我安装了overlay-scrollbar: $ sudo dpkg -i overlay-scrollbar_0.2.16 + r359 + 13.10.20130826-0ubuntu1_all.deb (正在读取数据库… 226507当前安装的文件和目录。) 准备替换overlay-scrollbar 0.2.16 + r359 + 13.10.20130826-0ubuntu1(使用overlay-scrollbar_0.2.16 + r359 + 13.10.20130826-0ubuntu1_all.deb)… 打开更换覆盖滚动条的包装…… 设置overlay-scrollbar(0.2.16 + r359 + 13.10.20130826-0ubuntu1)… 处理libglib2.0-0的触发器:i386 … 处理libglib2.0-0的触发器:amd64 … 大! 有效。 然后我尝试安装overlay-scrollbar-gtk2:i386: $ […]

dpkg:invoke-rc.d:initscript mysql,动作“启动”失败

我在这里阅读了很多post,他们都声明要运行以下命令: Apt-get -f删除* * apt-get update apt-get升级 apt-get -f install * * 我已经看到了各种各样的顺序等等,没有一个正在解决,我的问题。 无论我尝试什么,我得到: apt-get -f install mysql-server Reading package lists… Done Building dependency tree Reading state information… Done The following extra packages will be installed: mysql-server-5.5 mysql-server-core-5.5 Suggested packages: tinyca mailx The following NEW packages will be installed: mysql-server mysql-server-5.5 mysql-server-core-5.5 0 upgraded, 3 […]

是否有一个apt命令将deb文件从存储库下载到当前目录?

我经常对安装触发器(postinst,postrm)或软件包的某些部分(如/usr/share和/etc )感兴趣。 目前,我正在运行下一个命令来检索源代码: apt-get source [package-name] 缺点是,此文件通常比二进制包大得多,并不反映安装树。 现在,我正在通过http://packages.ubuntu.com/下载软件包: 搜索[package-name] 选择包 点击amd64 / i386进行下载 下载实际文件 这对我来说太长了,而且作为一个真正喜欢shell的人,我想做下一个( 虚构的 )命令: apt-get get-deb-file [package-name] 我在apt-get手册页中找不到这样的东西。 我发现–download-only是–download-only开关,但这会将软件包放在/var/cache/apt/archives (需要root权限)而不是当前目录中。

我可以为新的apt命令启用bash-completion吗?

自14.04开始在Ubuntu中出现的新apt命令似乎是apt-get和apt-cache之间非常有用的function交叉,但当前版本的bash-completion却不知道它…这使得它很多更难使用。 有没有快速的方法将此function添加到Bash以使apt命令易于使用?

无法解决GPG错误

我运行了sudo apt-get update ,最后我遇到了这些错误: Fetched 14,3 kB in 54s (264 B/s) Reading package lists… Done W: GPG error: http://archive.canonical.com saucy Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32 W: GPG error: http://extras.ubuntu.com trusty Release: The following signatures couldn’t be verified because the public key is […]

在’apt-cache depends’输出中,Suggests,Recommends,|,的含义是什么?

我已经检查了man / info页面,但是没有提到apt-cache depends的输出fomat的某些方面 man / info页面试图提供帮助(以钝的方式); 引用:“对于输出的其余部分的具体含义,最好查阅apt源代码” 现在对于信息页面的公平性,该引用是关于它已合理解释的’showpkg’选项,但我的选择没有这样的解释……我理解Linux信息来自许多来源(不仅仅是人/信息)页面),我并不特别想通过源搜索(尽管我做的很多),所以这里有一个我想知道的含义的例子。 # I can assume what these mean, but… # What does | mean? (probably means ‘or’???) # What does and the following indentations mean? # At the end, the interaction(?) of Suggest and Recommends puzzles me. $ apt-cache depends solr-common solr-common Depends: debconf |Depends: openjdk-6-jre-headless |Depends: […]

Update Manager和软件中心出错

我正在运行Ubuntu 11.10。 在尝试使用Update Manager GUI检查更新时,我遇到以下错误: 无法下载存储库信息检查您的Internet连接。 细节: W:Failed to fetch bzip2:/var/lib/apt/lists/partial /in.archive.ubuntu.com_ubuntu_dists_oneiric_restricted_binary-i386_Packages Hash Sum mismatch , W:Failed to fetch bzip2:/var/lib/apt/lists/partial /in.archive.ubuntu.com_ubuntu_dists_oneiric_universe_binary-i386_Packages Hash Sum mismatch , W:Failed to fetch bzip2:/var/lib/apt/lists/partial /in.archive.ubuntu.com_ubuntu_dists_oneiric_multiverse_binary-i386_Packages Hash Sum mismatch , W:Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/oneiric/main/i18n /Index No Hash entry in Release file /var/lib/apt/lists/partial/in.archive.ubuntu.com_ubuntu_dists_oneiric_main_i18n_Index , W:Failed to fetch bzip2:/var/lib/apt/lists/partial/in.archive.ubuntu.com_ubuntu_dists_oneiric-updates_restricted_binary-i386_Packages Hash Sum mismatch , […]

无法删除JDK – / usr / sbin / alternatives:没有这样的文件或目录

当我尝试使用sudo apt-get remove jdk1.8.0-40删除Java时sudo apt-get remove jdk1.8.0-40我得到这个: Reading package lists… Done Building dependency tree Reading state information… Done The following packages will be REMOVED: jdk1.8.0-40 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 245 MB disk space will be freed. Do you […]