Tag: apt

apt-get update:无法更改为(无法访问)// – chdir(2:没有此类文件或目录)

今天我试图更新包列表,我遇到了奇怪的错误 $ sudo apt-get update … Ign http://archive.ubuntu.com saucy-security/universe Translation-en_US Ign http://archive.ubuntu.com saucy-proposed/main Translation-en_US Ign http://archive.ubuntu.com saucy-proposed/restricted Translation-en_US Ign http://archive.ubuntu.com saucy-proposed/universe Translation-en_US Fetched 496 kB in 38s (13.0 kB/s) E: Unable to change to (unreachable)// – chdir (2: No such file or directory) 我现在应该改变什么? /etc/apt/sources.list东西?

将包添加到apt的部分档案中

我正在试验如何将软件包添加到squid-deb-proxy缓存的可能答案? ,其中我试图将在不同网络上下载的文件添加到squid-deb-proxy缓存中。 在我看来,如果我可以将下载的软件包粘贴到apt的部分下载缓存中,安装它会将其添加到squid-deb-proxy缓存中。 那么我的问题是: 我有两台电脑,一台笔记本电脑和一台台式电脑。 如何将笔记本电脑上下载的软件包添加到桌面上apt的部分下载缓存中? 我试过把它放在/ var / cache / apt / archives / partial中,但是当我去安装它时,apt-get只是覆盖了文件并试图重新下载它。

如何在具有Internet连接的系统中安装下载的.deb文件及其依赖项

我想当我执行apt install pkg ,会下载一个deb文件并放入/var/cache/apt/archives 。 但是今天在执行apt install python2.7 python-pip ,我在var/cache/apt/archives找不到任何deb文件。 我不知道为什么。 是因为我将sudo apt install pkg写入bash脚本并且没有用sudo执行脚本? 出于某种原因,我需要能够从deb文件安装一些软件包,这意味着我应该能够执行dpkg -i pkg.deb而不是apt install pkg来进行安装。 我已经尝试了命令apt download pkg ,它确实下载了一个deb文件,但它是一个小文件。 当我执行dpkg -i pkg.deb ,有很多关于依赖项的错误,我必须执行apt install -f来解决它们。 我的系统有一个可用的互联网连接。 我怎样才能获得完整的.deb包?

Ubuntu 16.04 LTS无法获取/散列和不匹配

这是我在sudo更新时不断得到的 Hit:1 http://archive.canonical.com/ubuntu xenial InRelease Ign:2 http://dl.google.com/linux/chrome/deb stable InRelease Get:3 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB] Hit:4 http://dl.google.com/linux/chrome/deb stable Release Hit:5 http://ppa.launchpad.net/gnome3-team/gnome3-staging/ubuntu xenial InRelease Hit:6 http://ppa.launchpad.net/gnome3-team/gnome3/ubuntu xenial InRelease Hit:7 http://eg.archive.ubuntu.com/ubuntu xenial InRelease Hit:8 http://ppa.launchpad.net/linrunner/tlp/ubuntu xenial InRelease Get:9 http://eg.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB] Hit:10 http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu xenial InRelease Hit:12 http://ppa.launchpad.net/openjdk-r/ppa/ubuntu xenial InRelease Hit:13 http://ppa.launchpad.net/plushuang-tw/uget-stable/ubuntu xenial InRelease Hit:14 http://ppa.launchpad.net/ubuntu-desktop/gnome-software/ubuntu […]

如何在deb包列表中找到顶级依赖项?

假设我有一个包列表: foo libfoo bar baz quux 假设foo需要libfoo和bar ,而baz需要quux 。 我想要一种方法来放入该列表,并获取此列表: foo baz 即 – 我希望安装最小的软件包列表 – 在依赖项解析之后 – 导致安装整个软件包列表。

Ubuntu 12.04中未满足的依赖项

我今天尝试在我的Ubuntu 12.04上安装dvb卡(Linux blauhai-linux 3.2.0-25-generic #40-Ubuntu SMP Wed May 23 20:30:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux ) 。 安装失败并显示错误。 之后,我尝试安装python(它已经安装但我收到此错误): linux:~$ sudo apt-get install git Reading package lists… Done Building dependency tree Reading state information… Done git is already the newest version. You might want to run ‘apt-get -f install’ to correct these: The following […]

找出使用特定包安装的软件包?

我有一个简单的问题。 使用apt-get install安装软件包时,通常会安装多个依赖软件包以及主要的依赖软件包。 我想知道是否有办法彻底扭转这种安装。 通常,移除主包将留下几个包。 例如,我最近安装了kubuntu-desktop 。 要完全删除它,我必须按照此页面上的说明操作: http://www.psychocats.net/ubuntu/puregnome 我想确切地知道他们是如何获得有关要卸载的所有软件包的信息。 谢谢你的帮助!

Ubuntu 12.10:程序包libc6-dev-i386不可用

我正在32位Ubuntu 12.10上构建32位增强线程库。 构建时我得到错误/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory 我搜索了这个问题,从阅读这个问题看来我需要安装libc6-dev-i386。 但是,当我运行sudo apt-get install libc6-dev-i386我得到: Package libc6-dev-i386 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 E: Package ‘libc6-dev-i386’ has no installation candidate 任何人都可以帮我找到这个包吗? 编辑,更多信息: 我不确定这是否相关,但是uname […]

我为什么要经常运行’apt-get update’和类似的命令?

我是Ubuntu的新手。 一位朋友建议我经常运行以下命令: sudo apt-get upgrade sudo apt-get update sudo apt-get autoremove sudo apt-get autoclean 他说,这将以某种方式保持我的系统清洁和更新。 我不知道这些命令到底是做什么的。 定期运行它们真的很有用吗?

如何获取伪包的真实包名和版本?

如果运行apt-get install pseudo-package-name如何apt-get install pseudo-package-name将要安装的真实完整包名(包括版本)? 这与前一个问题有关: 从lts包获取内核版本? 例: apt-get install linux-image-generic-lts-trusty 将安装(截至目前在我的32位Trusty服务器上): linux-image-3.13.0-35-generic 我试过以下,但没有人给我答案。 我正在尝试编写脚本,所以我可以抓住linux-headers。 $ sudo apt-get install -qqs linux-image-generic-lts-trusty Inst linux-image-generic-lts-trusty (3.13.0.35.42 Ubuntu:14.04/trusty-updates [i386]) Conf linux-image-generic-lts-trusty (3.13.0.35.42 Ubuntu:14.04/trusty-updates [i386]) $ apt-cache depends linux-image-generic-lts-trusty linux-image-generic-lts-trusty Depends: linux-image-generic $ apt-cache depends linux-image-generic linux-image-generic Depends: linux-image-3.13.0-35-generic Depends: linux-image-extra-3.13.0-35-generic Depends: linux-firmware $ apt-cache policy linux-image-generic-lts-trusty linux-image-generic-lts-trusty: Installed: […]