Tag: add apt repository

为什么archive.ubuntu.com不使用HTTPS?

我总是看到添加Universe和Multiverse存储库的说明,如下所示: sudo add-apt-repository -y “deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse” 最近我尝试编辑它来代替使用HTTPS,并且惊愕地发现archive.ubuntu.com似乎没有响应HTTPS。 现在我想知道如果攻击者成功地在这里进行中间人攻击,它会有多可行,或者可以造成什么样的伤害呢? 考虑到这些存储库在系统上的作用,我是不是太偏执了?

使用PPA发送简单更新

我希望设置一个PPA,以便对现场数百台ubuntu 12.04机器进行简单的更改。 简单的更改意味着bash脚本更改和配置文件更新以及可能的其他软件更新,包括可以通过apt-get install安装的新软件安装。 我想到的几个问题是, 可以使用PPA发送脚本更新吗? 我是否可以将客户端计算机配置为仅从此PPA获取更新并自动安装它们,就像无人值守升级一样? (当然我知道这个选项是可行的,但预计会有一套很好的工具来实现这一目标)。 我知道这是一个广泛的问题,但很少有人赞赏我的答案。

添加存储库时是否可以跳过确认步骤?

当我通过运行添加存储库时 sudo add-apt-repository ppa:ubuntu-x-swat/x-updates 它输出这个对话框: Updated versions of X.org drivers, libraries, etc. for Ubuntu. This PPA is for stable upstream releases of X.org components. If you’re looking for something even more bleeding-edge, please see the xorg-edgers PPA. While Ubuntu does not “officially/formally” support these packages, if you discover problems when installing these debs please feel […]

在ubuntu上安装ansible

我正在按照此文档安装ansible: https ://www.digitalocean.com/community/tutorials/how-to-install-and-configure-ansible-on-ubuntu-14-04 我试着在我的ubuntu存储库列表中添加ansible,但这是发生的事情: me@mydev:~/Documents$ sudo apt-add-repository ppa:ansible/ansible Cannot add PPA: ‘ppa:~ansible/ubuntu/ansible’. ERROR: ‘~ansible’ user or team does not exist. me@mydev:~/Documents$ 我也尝试过克隆repo(遵循这些说明: http : //docs.ansible.com/ansible/intro_installation.html )但是失败了以下内容: me@mydev:~/Documents/ansible$ git clone git://github.com/ansible/ansible.git –recursive Cloning into ‘ansible’… fatal: unable to connect to github.com: github.com[0: 192.30.252.131]: errno=Connection timed out me@mydev:~/Documents/ansible$ ping 192.30.252.131 PING 192.30.252.131 (192.30.252.131) 56(84) bytes of data. […]

问题添加ppa

当我运行命令 sudo add-apt-repository ppa:linrunner/tlp 在它长时间询问我的密码后它会挂起然后显示这个 Cannot add PPA: ‘ppa:linrunner/tlp’. Please check that the PPA name or format is correct. 我知道格式是正确的,我不知道有什么问题。 我不是代理或任何其他互联网阻止防火墙。

如何让add-apt-repository工作?

每当我尝试通过命令行添加存储库时,都会收到以下错误消息: Traceback (most recent call last): File “/usr/bin/add-apt-repository”, line 125, in ppa_info = get_ppa_info_from_lp(user, ppa_name) File “/usr/lib/python2.7/dist-packages/softwareproperties/ppa.py”, line 80, in get_ppa_info_from_lp curl.perform() pycurl.error: (60, ‘server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none’) 有没有办法解决这种情况?

防火墙后面没有gpg密钥

刚刚在这个封闭的线程中偶然发现: 运行apt-get时出现GPG错误 同样的问题,Ubuntu 12.04背后有防火墙和代理。 我不认为这个问题与给定主题重复。 所以我在这个post中重新打开这个问题。 我的输出: root@musik-Aspire-7741:~# apt-key adv –keyserver hkp://keyserver.ubuntu.com:80 –recv-keys 58B98E87 Executing: gpg –ignore-time-conflict –no-options –no-default-keyring –secret- keyring /tmp/tmp.tWVMhyIMYh –trustdb-name /etc/apt/trustdb.gpg –keyring /etc/apt/trusted.gpg –primary-keyring /etc/apt/trusted.gpg –keyserver hkp://keyserver.ubuntu.com:80 –recv-keys 58B98E87 gpg: Key 58B98E87 of hkp Server keyserver.ubuntu.com request ?: keyserver.ubuntu.com: Connection refused gpgkeys: HTTP fetch error 7: couldn’t connect: Connection refused gpg: No […]

删除PPA:“add-apt-repository –remove”与“rm /etc/apt/sources.list.d/???.list”

根据如何移除PPA? 主要有3种方法可以摆脱PPA: 使用add-apt-repository命令: sudo add-apt-repository –remove ppa:???/??? 手动删除.list文件: sudo rm /etc/apt/sources.list.d/????.list 使用其他工具,例如ppa-purge …(不是这个问题的主题) 我很好奇第一个和第二个选项之间的区别是什么,即除了删除.list文件之外还有什么更多的add-apt-repository –remove吗? 我能想到的一个例子是与PPA一起安装的GPG密钥。 add-apt-repository处理并删除它们而不仅仅是rm -ing .list文件吗? 请注意,删除GPG密钥和使用ppa-purge都不是这个问题的主题!

如何使用终端安装’add-apt-repository’?

我想安装: add-apt-repository ppa:ricotz/testin 它显示: The program add-apt-repository is currently not installed. You can install it by typing: sudo apt-get install python-software-properties 我现在应该怎么做?

我可以混合来自不同ubuntu版本的来源吗?

我们知道我们正在使用Repositories来安装位于/etc/apt/sources.list软件包和存储库配置文件。 我正在使用Ubuntu 12.10(Quantal Quetzal) ,它达到生命终结 。 这意味着没有更新或支持。 所以,问题是,我可以使用其他版本的sources.list文件,例如Ubuntu 12.04 LTS ,它会对系统产生负面影响。