apt

Repository is not signed in docker build

独自空忆成欢 提交于 2020-07-31 19:34:10
问题 I have the following Dockerfile that uses the latest Ubuntu image pulled from dockerhub: FROM ubuntu:latest RUN apt-get update && apt-get install -y g++ llvm lcov when I launch the docker build command, the following errors occur: Err:2 http://archive.ubuntu.com/ubuntu bionic InRelease At least one invalid signature was encountered. Err:1 http://security.ubuntu.com/ubuntu bionic-security InRelease At least one invalid signature was encountered. Err:3 http://archive.ubuntu.com/ubuntu bionic

Repository is not signed in docker build

倖福魔咒の 提交于 2020-07-31 19:33:54
问题 I have the following Dockerfile that uses the latest Ubuntu image pulled from dockerhub: FROM ubuntu:latest RUN apt-get update && apt-get install -y g++ llvm lcov when I launch the docker build command, the following errors occur: Err:2 http://archive.ubuntu.com/ubuntu bionic InRelease At least one invalid signature was encountered. Err:1 http://security.ubuntu.com/ubuntu bionic-security InRelease At least one invalid signature was encountered. Err:3 http://archive.ubuntu.com/ubuntu bionic

Repository is not signed in docker build

守給你的承諾、 提交于 2020-07-31 19:33:31
问题 I have the following Dockerfile that uses the latest Ubuntu image pulled from dockerhub: FROM ubuntu:latest RUN apt-get update && apt-get install -y g++ llvm lcov when I launch the docker build command, the following errors occur: Err:2 http://archive.ubuntu.com/ubuntu bionic InRelease At least one invalid signature was encountered. Err:1 http://security.ubuntu.com/ubuntu bionic-security InRelease At least one invalid signature was encountered. Err:3 http://archive.ubuntu.com/ubuntu bionic

Repository is not signed in docker build

自古美人都是妖i 提交于 2020-07-31 19:32:47
问题 I have the following Dockerfile that uses the latest Ubuntu image pulled from dockerhub: FROM ubuntu:latest RUN apt-get update && apt-get install -y g++ llvm lcov when I launch the docker build command, the following errors occur: Err:2 http://archive.ubuntu.com/ubuntu bionic InRelease At least one invalid signature was encountered. Err:1 http://security.ubuntu.com/ubuntu bionic-security InRelease At least one invalid signature was encountered. Err:3 http://archive.ubuntu.com/ubuntu bionic

python add-apt-repository: ImportError: No module named 'apt_pkg'

醉酒当歌 提交于 2020-07-17 07:18:06
问题 When I try: sudo add-apt-repository ppa:kirillshkrogalev/ffmpeg-next in Ubuntu, the terminal show this error message: Traceback (most recent call last): File "/usr/bin/add-apt-repository", line 11, in <module> from softwareproperties.SoftwareProperties import SoftwareProperties, shortcut_handler File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 27, in <module> import apt_pkg ImportError: No module named 'apt_pkg' I have two version of python, one is 2.7 the

Caching APT packages in GitHub Actions workflow

|▌冷眼眸甩不掉的悲伤 提交于 2020-05-25 17:06:45
问题 I use the following Github Actions workflow for my C project. The workflow finishes in ~40 seconds, but more than half of that time is spent by installing the valgrind package and its dependencies. I believe caching could help me speed up the workflow. I do not mind waiting a couple of extra seconds, but this just seems like a pointless waste of GitHub's resources. name: C Workflow on: [push, pull_request] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - name: make run

Caching APT packages in GitHub Actions workflow

末鹿安然 提交于 2020-05-25 17:06:08
问题 I use the following Github Actions workflow for my C project. The workflow finishes in ~40 seconds, but more than half of that time is spent by installing the valgrind package and its dependencies. I believe caching could help me speed up the workflow. I do not mind waiting a couple of extra seconds, but this just seems like a pointless waste of GitHub's resources. name: C Workflow on: [push, pull_request] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - name: make run

Android project with Java and Kotlin files, kapt or annotationProcessor?

有些话、适合烂在心里 提交于 2020-05-25 05:55:10
问题 I would like to know if in an Android project mixing Java and Kotlin files we must use annotationProcessor or kapt, or both ? In my understanding annotationProcessor must be used for Java files using annotations for code generation, and kapt must be used for Kotlin files using annotations for code generation. I have a project mixing both languages, and I just have replaced all the annotationProcessor dependencies in the build.gradle by kapt. Surprisingly it builds and seems to run correctly

Android project with Java and Kotlin files, kapt or annotationProcessor?

久未见 提交于 2020-05-25 05:55:07
问题 I would like to know if in an Android project mixing Java and Kotlin files we must use annotationProcessor or kapt, or both ? In my understanding annotationProcessor must be used for Java files using annotations for code generation, and kapt must be used for Kotlin files using annotations for code generation. I have a project mixing both languages, and I just have replaced all the annotationProcessor dependencies in the build.gradle by kapt. Surprisingly it builds and seems to run correctly

Docker connectivity issue: apt/apk do not work inside docker container and during docker build

☆樱花仙子☆ 提交于 2020-04-27 05:00:27
问题 I am struggling since two days with the following problem. Packages management systems fail when I try to run them in order to build a new container image, I tried with alpine:latest and ubuntu:latest. I get the same behavior if I try to use them from a running container, even if I use the --network host option. For example if I try to build the following container: FROM alpine:latest RUN apk update like this: docker build --no-cache -t test . I get: ERROR: http://dl-cdn.alpinelinux.org