以前,要安装docker我会用
apt-get install docker.io
Run Code Online (Sandbox Code Playgroud)
但是,我最近注意到安装docker的文档,它使用docker-ce.我试图找到两者之间的区别,但是已经空了.与docker-ce相关的docker.io是什么?
在使用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)
根据我的理解,我只是无法回应对话框,但是有一些方法可以通过参数提前回答每个问题吗?我知道它只是改变了一些配置,所以我可以在事后做到这一点,但可能最好让安装脚本做到这一点,所以一切都设置得当.
我正在使用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)
我试图通过遵循此处发现的建议来解决问题,但似乎无法解决此问题.
有没有人遇到这个并修复过它?如果是这样,需要解决这个问题?
我想安装Ruby 2.0使用
sudo apt-get install ruby2.0
Run Code Online (Sandbox Code Playgroud)
但是ruby2.0没有可用的包
我想使用apt-get install安装它,就像ruby 1.9.1一样
有什么建议?
由于我在 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)
有人知道如何解决这个错误吗?
以下是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-generic和virtualbox-ose-dkms包
我正在尝试在没有Internet连接的计算机上安装软件包.我想要做的是下载具有Internet连接的计算机上的所有软件包和依赖项,然后将所有内容运送到离线计算机.
我一直在玩的apt-get和apt-cache,但我还没有想出一个快速简便的方法一举下载软件包和依赖于我选择的目录.我该怎么做?我正确地解决了这个问题吗?您将如何安装具有大量依赖关系的脱机包?
我刚刚通过debian安装步骤(使用apt-get install)在我的Ubuntu服务器上安装了Jenkins.我希望我的构建从GitHub上的私有git存储库中提取.有了这个,我需要使用SSH访问来访问我的存储库.
我的大多数搜索结果刚刚说是以Jenkins用户身份登录并为我的GitHub帐户生成SSH密钥,但是通过debian软件包管理器安装,我没有Jenkins用户的密码.
那么如何为我的Jenkins服务器生成SSH密钥呢?
当我尝试
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)
但它没有按预期工作.
apt-get ×10
ubuntu ×7
docker ×3
installation ×2
android ×1
bash ×1
certbot ×1
dockerfile ×1
jenkins ×1
linux ×1
ruby ×1
ruby-2.0 ×1
ubuntu-12.04 ×1
ubuntu-16.04 ×1
virtualbox ×1