我正在 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)
但得到: …
我有一个带Rackspace的服务器,我用它来做几个Ruby站点.当我尝试 bundle install新网站时,我得到了
Retrying download gem from http://rubygems.org/ due to error (2/4): Gem::RemoteFetcher::UnknownHostError timed out (http://rubygems.org/gems/rake-12.3.1.gem)
Run Code Online (Sandbox Code Playgroud)
或者gem update --system我试着
ERROR: While executing gem ... (Gem::RemoteFetcher::UnknownHostError)
timed out (http://api.rubygems.org/specs.4.8.gz)
Run Code Online (Sandbox Code Playgroud)
我尝试过的:
gem从源代码下载和更新(在2.7.6上)apt-get updateAddTrustExternalCARoot-2048.pem我没有尝试过:
我终于(在提交之前)能够bundle install通过删除rubygems.org作为源并添加https://gems.ruby-china.org/来开始工作.为什么gem无法访问rubygems.org?
我试图在debian:jessie docker容器上通过oracle-java8-installer安装java 8.以下是我的Dockerfile:
FROM debian:jessie
ENV JAVA_VERSION 1.8.0
RUN echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" > /etc/apt/sources.list.d/webupd8team-java.list
RUN echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" >> /etc/apt/sources.list.d/webupd8team-java.list
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
RUN echo "debconf shared/accepted-oracle-license-v1-1 select true" | /usr/bin/debconf-set-selections
RUN apt-get update
RUN apt-get install -y --force-yes vim
RUN apt-get install -y --force-yes oracle-java8-installer
Run Code Online (Sandbox Code Playgroud)
然而,这给了:
Connecting to download.oracle.com (download.oracle.com)|23.63.224.171|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-01-17 12:31:05 ERROR 404: Not Found.
download failed
Oracle JDK 8 is …Run Code Online (Sandbox Code Playgroud) 我正在运行Travis构建,并且在构建mysql:5.7.27 docker映像时失败。Dockerfile运行apt-get update,然后出现错误W: Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages 404 Not Found。
使用curl我可以看到它正在重定向,但是重定向到URL的结果是404。有人看到这种行为并且有补救措施吗?在debian进行更改之前,它基本上是不可修复的吗?
? ms git:(develop) curl --head http://deb.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages
HTTP/1.1 302 Found
Date: Tue, 26 Mar 2019 16:03:04 GMT
Server: Apache
X-Content-Type-Options: nosniff
X-Frame-Options: sameorigin
Referrer-Policy: no-referrer
X-Xss-Protection: 1
Location: http://cdn-fastly.deb.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages
Content-Type: text/html; charset=iso-8859-1
? ms git:(develop) curl --head http://cdn-fastly.deb.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages
HTTP/1.1 404 Not Found
Server: Apache
X-Content-Type-Options: nosniff
X-Frame-Options: sameorigin
Referrer-Policy: no-referrer
X-Xss-Protection: 1
Content-Type: text/html; charset=iso-8859-1
Via: 1.1 varnish
Content-Length: 316
Accept-Ranges: bytes
Date: Tue, 26 Mar …Run Code Online (Sandbox Code Playgroud) 我只是按照以下建议:https ://certbot.eff.org/#debianjessie-apache 在我的linux vps上安装let的加密证书.
但不幸的是,安装没有像我预期的那样,因为:
所以我最终决定删除certbot,而是尝试安装本地ssl证书,我亲自签名.我找不到certbot的直接卸载指南.你能帮忙吗?
谢谢
我需要ffmeg通过Dockerfile在debian jessie上安装.
Debian建议使用backports.但是我如何在Dockerfile中执行此操作?
加
deb http://httpredir.debian.org/debian jessie-backports main non-free
deb-src http://httpredir.debian.org/debian jessie-backports main non-free
Run Code Online (Sandbox Code Playgroud)
至
/etc/apt/sources.list
Run Code Online (Sandbox Code Playgroud)
这就是我的Dockerfile的样子:
FROM node:4.8-slim
COPY . /
## How to add backports to list ???
RUN apt-get update && apt-get install ffmpeg && ffmpeg -i
RUN (cd programs/server && npm install --silent)
CMD ["node", "main.js"]
Run Code Online (Sandbox Code Playgroud) 我们在容器化环境中使用node:8-jessie,然后昨天我们突然遇到了Packages not found 404 错误。
W: Failed to fetch http://security.debian.org/debian-security/dists/jessie/updates/main/binary-amd64/Packages 404 Not Found [IP: 151.101.130.132 80]
W: Failed to fetch http://deb.debian.org/debian/dists/jessie/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
Run Code Online (Sandbox Code Playgroud)
然后我们根据此处和此处所示的修复对 Dockerfile 进行了一些调整。但是我们遇到了上面提供的相同的无法获取错误以及附加的 GPG 错误:
W: GPG error: http://archive.debian.org jessie-backports InRelease: The following signatures were invalid: KEYEXPIRED 1587841717 KEYEXPIRED 1668891673
这是我的 Dockerfile:
FROM node:8-jessie
RUN echo 'deb http://archive.debian.org/debian jessie-backports main' > /etc/apt/sources.list.d/jessie-backports.list
RUN sed …Run Code Online (Sandbox Code Playgroud) 我最近将我的服务器从Debian Wheezy升级到Debian Jessie(Debian 8).许多软件包已更新,现在,我无权从http:// myIP/phppgadmin访问phppgadmin
Forbidden
You don't have permission to access /phppgadmin/ on this server.
Run Code Online (Sandbox Code Playgroud)
我尝试了很多想法解决问题,但绝对没有任何作用......
在/etc/apache2/conf.d/phppgadmin中:
Alias /phppgadmin /usr/share/phppgadmin
<Directory /usr/share/phppgadmin>
DirectoryIndex index.php
AllowOverride None
order allow,deny
# deny from all
allow from 127.0.0.0/255.0.0.0 ::1/128
allow from all
Run Code Online (Sandbox Code Playgroud)
在/etc/apache2/sites-enabled/000-default.conf中我添加:
<Directory /usr/share/phppgadmin/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Run Code Online (Sandbox Code Playgroud)
我尝试更改/ usr/share/phppgadmin /,/ var/www的权限...
即使我卸载了包phpgpadmin,我也有同样的信息!
apt-get remove phppgadmin
Run Code Online (Sandbox Code Playgroud)
非常感谢帮助......
我的Bitbucket管道的[相关部分]如下所示:
- step:
image: python:3.5.1
name: upload to s3
script:
- export S3_BUCKET="elasticbeanstalk-us-east-1-122232355432"
- export VERSION_LABEL=$(cat VERSION_LABEL)
- apt-get update # required to install zip
- apt-get install -y zip # required for packaging up the application
- pip install boto3==1.3.0 # required for upload_to_s3.py
- zip --exclude=*.git* -r /tmp/artifact.zip . # package up the application for deployment
- python upload_to_s3.py # run the deployment script
Run Code Online (Sandbox Code Playgroud)
但是,当我在Bitbucket中运行它时,出现以下错误:
+ apt-get update
Get:1 http://security.debian.org jessie/updates InRelease [44.9 kB]
Ign http://httpredir.debian.org …Run Code Online (Sandbox Code Playgroud) 我已经为此苦苦挣扎了几天,找不到在 debian:jessie docker 上安装 OpenCV + python3.5 的正确方法(我不能在 debian:jessie 旁边使用任何基础映像)。
我目前正在尝试纠结的怪物,因为你可以在下面找到。
我主要基于途中的许多错误处理和:https : //www.pyimagesearch.com/2017/09/25/configuring-ubuntu-for-deep-learning-with-python/ https://开头的github .com/janza/docker-python3-opencv/blob/master/Dockerfile
我认为我的问题是安装 python3.5 并将 pip3 指定为默认值,然后通过它安装 numpy,然后安装其余的。但在这一点上,我完全不确定,也不确定如何解决它。
真的可以使用任何帮助和指针来解决这个烂摊子。谢谢。
FROM debian:jessie
RUN mkdir -p /home/deployer
RUN apt-get update && apt-get install -yq libgconf-2-4 && apt-get install vim -y
RUN apt-get update && apt-get install -y wget --no-install-recommends \
&& apt-get install -y curl \
&& apt-get install -y libssl-dev openssl \
&& apt-get install -y software-properties-common \
&& apt-get install -y python-dev build-essential \
&& …Run Code Online (Sandbox Code Playgroud) debian-jessie ×10
docker ×5
debian ×4
apache ×1
apt ×1
apt-get ×1
bitbucket ×1
certbot ×1
dockerfile ×1
java-8 ×1
key ×1
lets-encrypt ×1
linux ×1
opencv ×1
phppgadmin ×1
postgresql ×1
python-3.5 ×1
removeall ×1
rubygems ×1
server ×1
travis-ci ×1