标签: apt-get

与docker-ce和docker-ee相关的docker.io是什么?

以前,要安装docker我会用

apt-get install docker.io
Run Code Online (Sandbox Code Playgroud)

但是,我最近注意到安装docker的文档,它使用docker-ce.我试图找到两者之间的区别,但是已经空了.与docker-ce相关的docker.io是什么?

ubuntu apt-get docker ubuntu-16.04

72
推荐指数
4
解决办法
4万
查看次数

在docker下安装时是否可以回答对话框问题?

在使用apt-get安装某些软件包时,是否有可能以某种方式回答以对话框形式呈现的问题?

例如,我正在尝试设置一个包含该mail-stack-delivery包的容器:

FROM ubuntu

RUN apt-get install -y mail-stack-delivery
Run Code Online (Sandbox Code Playgroud)

但是,dockerfile在构建时会产生许多错误:

debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (Can't locate Term/ReadLine.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7, <> line 11.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin: 
Run Code Online (Sandbox Code Playgroud)

根据我的理解,我只是无法回应对话框,但是有一些方法可以通过参数提前回答每个问题吗?我知道它只是改变了一些配置,所以我可以在事后做到这一点,但可能最好让安装脚本做到这一点,所以一切都设置得当.

installation ubuntu apt-get docker

70
推荐指数
6
解决办法
2万
查看次数

Docker存储库在Ubuntu上运行apt-get update时没有发布文件

我正在使用Ubuntu 16.10并且最近使用Xenial版本安装了Docker(v1.12.4),遵循此处的说明.我没有遇到任何创建容器的问题,确保它们自动重启等.

但是,现在每次运行apt-get update时,都会收到以下错误消息:

W: The repository 'https://apt.dockerproject.org/repo ubuntu-xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch https://apt.dockerproject.org/repo/dists/ubuntu-xenial/main/binary-amd64/Packages
E: Some index files failed to download. They have been ignored, or old ones used instead.
Run Code Online (Sandbox Code Playgroud)

我试图通过遵循此处发现的建议来解决问题,但似乎无法解决此问题.

有没有人遇到这个并修复过它?如果是这样,需要解决这个问题?

ubuntu apt-get docker

68
推荐指数
10
解决办法
6万
查看次数

如何在没有RVM的情况下在Ubuntu上安装Ruby 2

我想安装Ruby 2.0使用

sudo apt-get install ruby2.0
Run Code Online (Sandbox Code Playgroud)

但是ruby2.0没有可用的包

我想使用apt-get install安装它,就像ruby 1.9.1一样

有什么建议?

ruby apt-get ubuntu-12.04 ruby-2.0

67
推荐指数
4
解决办法
5万
查看次数

如何在Ubuntu上安装Android SDK?

对于我的Ubuntu机器,我从这个页面下载了最新版本的Android SDK .

解压缩下载的.tgz文件后,我试图搜索安装说明并找到:

要开始使用Linux:

解压缩您下载的.zip文件.SDK文件将单独下载到用户指定的目录.

记下系统上SDK目录的名称和位置 - 稍后在命令行中使用SDK工具时,需要参考SDK目录.

什么究竟是我们应该做的?

linux installation ubuntu android apt-get

67
推荐指数
7
解决办法
15万
查看次数

E:存储库“http://ppa.launchpad.net/certbot/certbot/ubuntu focus Release”没有发布文件

由于我在 Debian 10 上安装了 certbot,它总是显示此错误:

root@HypeTime:/home/sinusbot# apt update
Hit:1 http://security.debian.org/debian-security buster/updates InRelease
Hit:2 http://deb.debian.org/debian buster InRelease
Hit:3 http://deb.debian.org/debian buster-updates InRelease
Ign:4 http://ppa.launchpad.net/certbot/certbot/ubuntu focal InRelease
Err:5 http://ppa.launchpad.net/certbot/certbot/ubuntu focal Release
  404  Not Found [IP: 2001:67c:1560:8008::15 80]
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/certbot/certbot/ubuntu focal Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Run Code Online (Sandbox Code Playgroud)

有人知道如何解决这个错误吗?

apt-get certbot debian-buster

63
推荐指数
4
解决办法
5万
查看次数

如何更正虚拟机安装

以下是virtualbox从终端运行时错误输出的方式.怎么纠正呢?我在Ubuntu 12.10 64位机器上.

virtualbox
WARNING: The character device /dev/vboxdrv does not exist.
     Please install the virtualbox-ose-dkms package and the appropriate
     headers, most likely linux-headers-generic.

     You will not be able to start VMs until this problem is fixed.
Run Code Online (Sandbox Code Playgroud)

编辑:

我有最新的linux-headers-genericvirtualbox-ose-dkms

ubuntu virtualbox apt-get

60
推荐指数
3
解决办法
5万
查看次数

如何将所有依赖项和包下载到目录

我正在尝试在没有Internet连接的计算机上安装软件包.我想要做的是下载具有Internet连接的计算机上的所有软件包和依赖项,然后将所有内容运送到离线计算机.

我一直在玩的apt-getapt-cache,但我还没有想出一个快速简便的方法一举下载软件包和依赖于我选择的目录.我该怎么做?我正确地解决了这个问题吗?您将如何安装具有大量依赖关系的脱机包?

apt-get

59
推荐指数
7
解决办法
9万
查看次数

Apt上的Jenkins用户 - 获取安装安装

我刚刚通过debian安装步骤(使用apt-get install)在我的Ubuntu服务器上安装了Jenkins.我希望我的构建从GitHub上的私有git存储库中提取.有了这个,我需要使用SSH访问来访问我的存储库.

我的大多数搜索结果刚刚说是以Jenkins用户身份登录并为我的GitHub帐户生成SSH密钥,但是通过debian软件包管理器安装,我没有Jenkins用户的密码.

那么如何为我的Jenkins服务器生成SSH密钥呢?

ubuntu continuous-integration apt-get jenkins

55
推荐指数
1
解决办法
3万
查看次数

apt-get install tzdata noninteractive

当我尝试

apt-get install -y tzdata
Run Code Online (Sandbox Code Playgroud)

显示选择时区的命令行选项.我试图在脚本中使用它来进行一些设置,如何在没有用户输入的情况下运行apt-get?

我知道要重新配置我能做的tzdata

echo "America/New_York" > /etc/timezone
dpkg-reconfigure -f noninteractive tzdata
Run Code Online (Sandbox Code Playgroud)

但是在安装时我需要它完全运行,即使它没有设置正确的时区,我总是可以重新配置它.

我试过了

echo 5 | apt-get install -y tzdata
Run Code Online (Sandbox Code Playgroud)

但它没有按预期工作.

bash ubuntu apt-get dockerfile

55
推荐指数
5
解决办法
3万
查看次数