标签: apt

包php5没有安装候选(Ubuntu 16.04)

当我尝试使用以下代码在Ubuntu 16.04中安装php5时:

sudo apt-get install php5 php5-mcrypt
Run Code Online (Sandbox Code Playgroud)

我收到以下错误:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'php5' has no installation candidate
Run Code Online (Sandbox Code Playgroud)

我尝试过重新安装,但它没有帮助.

我将15.10 Ubuntu更新为16.04后遇到了所有这个错误

php ubuntu apt dpkg ubuntu-16.04

83
推荐指数
3
解决办法
27万
查看次数

如何信任apt存储库:Debian apt-get update错误公钥不可用:NO_PUBKEY <id>

尝试在Debian Etch安装上更新一些存储库,并通过运行"apt-get update"获得以下错误

W: GPG error: http://www.debian-multimedia.org etch Release: The following signatures couldn't be verified because teh public key is not available: NO_PUBKEY 07DC563D1F41B907
W: You may want to run apt-get update to correct these problems
Run Code Online (Sandbox Code Playgroud)

具有讽刺意味的是它指示我运行apt-get update是一个不错的踢球者......

debian apt upgrade gnupg repository

71
推荐指数
2
解决办法
14万
查看次数

你如何在代理后面的dockerfile中运行`apt-get`?

我正在运行一个带有docker的虚拟机(Ubuntu 13.10)(版本0.8.1,构建a1598d1).我正在尝试使用dockerfile构建映像.首先,我想更新软件包(使用下面的代码 - 代理被混淆)但apt-get超时错误:Could not resolve 'archive.ubuntu.com'.

FROM ubuntu:13.10
ENV HTTP_PROXY <HTTP_PROXY>
ENV HTTPS_PROXY <HTTPS_PROXY>
RUN export http_proxy=$HTTP_PROXY
RUN export https_proxy=$HTTPS_PROXY
RUN apt-get update && apt-get upgrade
Run Code Online (Sandbox Code Playgroud)

我还在主机系统中运行以下命令:

sudo HTTP_PROXY=http://<PROXY_DETAILS>/ docker -d &
Run Code Online (Sandbox Code Playgroud)

主机能够apt-get毫无问题地运行.

如何更改dockerfile以允许它从容器内到达ubuntu服务器?

更新

我在CentOS中运行代码(更改FROM ubuntu:13.10FROM centos),它运行正常.这似乎是Ubuntu的一个问题.

apt http-proxy docker

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

从CRAN Ubuntu存储库安装R:无公钥错误

我在R版本2.13上,并希望更新到更新版本,以便使用一些依赖于R> = 2.14的软件包.

我行我的sources.list文件中所描述这里.然后我导航到终端并键入:

sudo apt-get update
Run Code Online (Sandbox Code Playgroud)

尝试更新离我最近的CRAN镜像上的R时出现以下错误:

阅读包裹清单......完成

W:GPG错误:http://lib.stat.cmu.edu oneiric/Release:由于公钥不可用,无法验证以下签名:NO_PUBKEY 51716619E084DAB9

知道如何调试此错误吗?

linux apt r

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

E:无法找到包裹npm

当我尝试安装npm时sudo apt-get install npm,我收到以下错误:

E:无法找到包裹npm

为什么不能找到npm?我正在使用Debian 9 sudo apt-get install nodejs.

debian apt apt-get node.js npm

51
推荐指数
5
解决办法
6万
查看次数

对sudo apt-get -y install oracle-java7-installer上的许可协议自动yes

Ubuntu的Oracle Java包交互式地询问许可协议.所以每次我都要说"OK"然后"是",但我想自动化它.我这样做是:

sudo add-apt-repository -y ppa:webupd8team/java
sudo apt-get update
sudo apt-get -y install oracle-java7-installer 
Run Code Online (Sandbox Code Playgroud)

有没有一种简单的方法可以在不使用期望的情况下自动化协议流程?

ubuntu automation apt

50
推荐指数
3
解决办法
2万
查看次数

如何让Chef在运行其他配方之前运行apt-get update

现在我的Vagrantfile中有以下内容:

config.vm.provision :chef_solo do |chef|
    chef.cookbooks_path = "cookbooks"
    chef.add_recipe "apt"
    chef.add_recipe "build-essential"
    chef.add_recipe "chef-redis::source"
    chef.add_recipe "openssl"
    chef.add_recipe "git"
    chef.add_recipe "postgresql::server"
    chef.add_recipe "postgresql::client"
end
Run Code Online (Sandbox Code Playgroud)

为了安装添加到我的recipe_list的软件,我需要让VM 在安装其他软件之前发布apt-get更新.

我的印象是,这是'apt'配方的一个特点 - 它会首先运行更新.

我做流浪汉时的输出是:

[Sat, 11 Feb 2012 22:20:03 -0800] INFO: *** Chef 0.10.2 ***
[Sat, 11 Feb 2012 22:20:03 -0800] INFO: Setting the run_list to ["recipe[apt]", "recipe[build-essential]", "recipe[chef-redis::source]", "recipe[openssl]", "recipe[git]", "recipe[postgresql::server]", "recipe[postgresql::client]", "recipe[vagrant-main]"] from JSON
[Sat, 11 Feb 2012 22:20:03 -0800] INFO: Run List is [recipe[apt], recipe[build-essential], recipe[chef-redis::source], recipe[openssl], recipe[git], …
Run Code Online (Sandbox Code Playgroud)

apt apt-get chef-infra vagrant

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

如何修复:由于公钥不可用,无法验证以下签名:NO_PUBKEY

我正在 Debian 8(待升级)上开发嵌入式系统。当我这样做时apt update,我得到以下信息:

...
...
Hit http://deb.debian.org stable/contrib arm64 Packages
Hit http://deb.debian.org stable/non-free arm64 Packages                       
Fetched 116 kB in 19s (6011 B/s)                                               
Reading package lists... Done
Building dependency tree       
Reading state information... Done
109 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: GPG error: http://deb.debian.org stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY 0E98404D386FA1D9 NO_PUBKEY 605C66F00D6C9793
Run Code Online (Sandbox Code Playgroud)

我试过:

apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 
Run Code Online (Sandbox Code Playgroud)

但得到: …

apt key debian-jessie

46
推荐指数
1
解决办法
16万
查看次数

Windows10 WSL2 Ubuntu / Debian # 无网络

从 WSL 升级到 WSL2 后

sudo apt-get update
Run Code Online (Sandbox Code Playgroud)

不再起作用。后:

wsl --set-version Ubuntu-18.04 2

输出是:

> sudo apt-get update
Err:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
  Temporary failure resolving 'security.ubuntu.com'
Err:2 http://archive.ubuntu.com/ubuntu bionic InRelease
  Temporary failure resolving 'archive.ubuntu.com'
Err:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
  Temporary failure resolving 'archive.ubuntu.com'
Err:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
  Temporary failure resolving 'archive.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic/InRelease  Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease  Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease  Temporary failure resolving …
Run Code Online (Sandbox Code Playgroud)

ubuntu debian apt windows-subsystem-for-linux wsl-2

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

Docker在安装apt-utils时遇到问题

我正在尝试apt-utils在Docker 上安装,因为当我刚刚做的时候apt-get update,我收到了错误:debconf: delaying package configuration, since apt-utils is not installed.所以我添加了一行安装apt-utils(连同curl):

RUN apt-get update && apt-get install -y apt-utils && apt-get install -y curl
Run Code Online (Sandbox Code Playgroud)

但是,我仍然遇到这个错误,导致我相信我的命令不起作用.当我尝试构建图像时,下面是我的输出.

Step 5/12 : RUN apt-get update && apt-get install -y apt-utils && apt-get install -y curl
 ---> Running in 6e6565ff01bd
Get:1 http://security.debian.org jessie/updates InRelease [94.4 kB]
Ign http://deb.debian.org jessie InRelease
Get:2 http://deb.debian.org jessie-updates InRelease [145 kB]
Get:3 http://deb.debian.org jessie Release.gpg [2420 B]
Get:4 http://deb.debian.org jessie …
Run Code Online (Sandbox Code Playgroud)

apt docker

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