Tag: apt

dpkg-deb:错误:子进程粘贴被信号(Broken pipe)nginx杀死

软件最新选件自动下载nginx的升级。 但安装它时给了我以下错误: Reading package lists… Done Building dependency tree Reading state information… Done The following NEW packages will be installed: nginx 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/434 kB of archives. After this operation, 977 kB of additional disk space will be used. (Reading database […]

如何以apt-get样式安装ppa包

我想以sudo apt-get install 样式安装ppa软件包。 我不想谷歌获取ppa名称,我不想在执行apt-get之前执行add-apt-repository 。 我只想用ppa install vim这样的命令安装一个ppa包来获得最新的vim ppa版本。 你能推荐我一个工具吗?

sudo apt-get update取消了一半,现在无法运行sudo apt-get update

我是ubuntu的新用户。 到目前为止,它一直运作良好。 今天我尝试过’sudo apt-get update’,并且在获取数据后它已经冻结了。 这是输出: sudo apt-get update Hit:1 http://archive.canonical.com/ubuntu xenial InRelease Hit:2 http://ppa.launchpad.net/webupd8team/sublime-text-3/ubuntu xenial InRelease Get:3 http://security.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB] Hit:4 http://us.archive.ubuntu.com/ubuntu xenial InRelease Hit:5 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease Get:6 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease [92.2 kB] Fetched 187 kB in 0s (225 kB/s) 使用sudo apt-get clean然后sudo apt-get update ,我得到以下问题: E: Could not get lock […]

如何告诉Ubuntu在哪里安装程序以及如何判断现有程序的安装位置?

我是Ubuntu / Linux的新手,目前使用的是Ubuntu Server。 只想弄清楚一些基本的东西。 你怎么知道你在哪里安装程序。 例如,我刚安装了Sphinx搜索引擎,将我从他们网站下载的tarball放到我的: /home/sphinx 目录。 我创建了sphinx目录来放置tarball。然后我运行了这些命令: tar xvzf sphinx-0.9.8.1.tar.gz cd sphinx-0.9.8.1/ ./configure –with-mysql-includes=/usr/include/mysql –with-mysql-libs=/usr/lib/mysql 然后这些: make sudo make install 现在我有很多文件位于我运行这些命令的目录中。 这是我的Spynx安装还是安装在其他地方? 在Windows中,如果您在程序仍将安装在C:\ Program Files目录中的任何位置运行安装程序(.exe文件)。 类似的东西适用于所有程序都安装在中央位置的linux,或者你可以在系统的任何地方安装程序。 问题 我希望将所有已安装的程序保存在一个位置,以便在最佳实践方面适合这样做。 换句话说,什么是Linux相当于C:\ Program Files? 如何总是在这个位置安装,只是放置tarball并从这个位置运行安装命令? 如果我使用sudo apt-get来安装软件包呢? 我如何指向这个位置告诉apt-get始终安装在那里?

备份软件源

在Ubuntu 10.04中,当我转到系统>管理>软件源并转到身份validation选项卡时,我可以查看所有允许我从第三方源下载的密钥。 如何备份以将我的所有源和密钥复制到新系统?

由于apt / dpkg错误出现,无法升级/更新ubuntu 18.04

我已经使用ubuntu 18.04已经有一段时间了,它工作正常,直到今天早上我打开电脑并使用终端进行更新。 这是sudo apt upgrade的输出 Reading package lists… Done Building dependency tree Reading state information… Done Calculating upgrade… Done The following packages were automatically installed and are no longer required: libuchardet0 lollypop-portal mpv phantomjs python3-bs4 python3-html5lib python3-lxml python3-pylast python3-pyxattr python3-webencodings rtmpdump youtube-dl Use ‘sudo apt autoremove’ to remove them. 0 upgraded, 0 newly installed, 0 […]

E:列表文件/etc/apt/sources.list(Component)中的格式错误的条目54

我对Ubuntu 16.04比较新,一切都很顺利,直到我的操作系统今天抛出这个错误。 以下是第54行的/etc/apt/sources.list的源代码: deb http://archive.canonical.com/ partner 我曾尝试在/之后添加ubuntu ,但这似乎不起作用。 还有什么想法可以尝试吗? sudo apt-get update之前,我无法运行sudo apt-get update 。

sudo apt get update给出错误 – 包缓存文件已损坏

vegan@vegan:~$ sudo apt-get update Hit:1 http://ppa.launchpad.net/fish-shell/release-2/ubuntu xenial InRelease Ign:2 http://dl.google.com/linux/chrome-remote-desktop/deb stable InRelease Ign:3 http://archive.ubuntu.com/ubuntu precise InRelease Get:4 http://security.ubuntu.com/ubuntu precise-security InRelease [55,7 kB] Get:5 http://archive.ubuntu.com/ubuntu precise-updates InRelease [55,7 kB] Ign:6 http://dl.google.com/linux/chrome/deb stable InRelease Hit:7 https://deb.nodesource.com/node_6.x xenial InRelease Hit:8 http://archive.ubuntu.com/ubuntu precise-backports InRelease Get:9 http://dl.google.com/linux/chrome-remote-desktop/deb stable Release [1.187 B] Get:10 http://archive.ubuntu.com/ubuntu precise Release [49,6 kB] Get:11 http://archive.ubuntu.com/ubuntu precise […]

pyvenv vs venv vs python-virtualenv vs virtualenv and python 3

malikarumi@Tetouan2:~$ pip install virtualenv Collecting virtualenv Downloading virtualenv-12.0.7-py2.py3-none-any.whl (1.8MB) 100% |################################| 1.8MB 330kB/s malikarumi@Tetouan2:~$ pip freeze (a lot of stuff, but not virtualenv) malikarumi@Tetouan2:~$ virtualenv testvenv1 The program ‘virtualenv’ is currently not installed. You can install it by typing: sudo apt-get install python-virtualenv 这里发生了什么? 是python-virtualenv == pyvenv? 这还不是吗? 原始的virtualenv仍然可以使用python吗? 如果venv(太多的名称变化!!!)是标准库的一部分, https: //docs.python.org/3/library/venv.html,为什么我被告知要安装它? 当我尝试安装它时,我得到了: malikarumi@Tetouan2:~$ sudo […]

如何修复dpkg错误?

每次我尝试安装或删除包时,都会收到此错误。 我想也许这是硬盘,但磁盘检查给了我一个健康的清单。 dpkg: unrecoverable fatal error, aborting: reading files list for package ‘linux-headers-3.16.0-31’: Input/output error E: Sub-process /usr/bin/dpkg returned an error code (2) A package failed to install. Trying to recover: 我尝试了从dpkg状态文件中删除此文件列表的解决方案,但无济于事。 我试过清洗包但没用。 我在这一点上陷入困​​境,因为我在Google上找不到任何帮助。 更新: 这就是错误所说的: dpkg: unrecoverable fatal error, aborting: E: Sub-process /usr/bin/dpkg returned an error code (2) A package failed to install. Trying […]