我想将所有已安装软件包的列表输出到一个文本文件中,以便我可以查看它并在另一个系统上批量安装。我该怎么做?
我使用该add-apt-repository命令添加了许多 PPA 。有没有一种简单的方法可以删除这些 PPA?我已经检查/etc/apt/sources.list了适当的 deb 行,但它们不在那里。
这是在服务器系统上,所以命令行解决方案会很棒!
如何.deb通过命令行安装文件?
我刚刚为 GIMP 的开发版本添加了一个 PPA 存储库,但出现此错误:
$ apt-get update && apt-get upgrade
...
The following packages have been kept back:
gimp gimp-data libgegl-0.0-0 libgimp2.0
Run Code Online (Sandbox Code Playgroud)
为什么以及如何解决它以便我可以使用最新版本而不是我现在拥有的版本?
尝试使用时出现此错误apt-get:
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?
Run Code Online (Sandbox Code Playgroud)
我怎样才能解决这个问题?
我正在尝试使用终端将文件夹的内容复制到不同目录中的另一个文件夹。
有人能够为我提供实现此目的所需的命令行语法示例吗?
在 Docker 的文档页面上,所有示例命令都显示为不带sudo,如下所示:
docker ps
Run Code Online (Sandbox Code Playgroud)
在 Ubuntu 上,二进制文件称为docker.io. 没有 sudo 它也不起作用:
sudo docker.io ps
Run Code Online (Sandbox Code Playgroud)
如何配置 Docker 以便我不需要在每个 Docker 命令前添加 sudo 前缀?
我从客户端收到了一个巨大的 .tar.gz 文件,其中包含大约 800 mb 的图像文件(未压缩时)。我们托管公司的 ftp 非常慢,因此在本地提取所有文件并通过 ftp 发送它们是不切实际的。我能够将 .tar.gz 文件 ftp 到我们的托管站点,但是当我 ssh 进入我的目录并尝试使用 unzip 时,它给了我这个错误:
[esthers@clients locations]$ unzip community_images.tar.gz
Archive: community_images.tar.gz
End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive.
note: community_images.tar.gz may be a plain executable, not an archive
unzip: cannot find zipfile directory in …Run Code Online (Sandbox Code Playgroud)