How to trust a apt repository : Debian apt-get update error public key is not available: NO_PUBKEY [closed]

I found several posts telling me to run several gpg commands, but they didn’t solve the problem because of two things. First, I was missing the debian-keyring package on my system and second I was using an invalid keyserver. Try different keyservers if you’re getting timeouts! Thus, the way I fixed it was: apt-get install … Read more

Removing broken packages in Ubuntu [closed]

I faced this problem with a broken package, rvm. I tried many things like sudo apt install -f and sudo dpkg –purge –force-all rvm but nothing worked. Finally I managed to find a blog post that explains how to remove broken packages on Debian/Ubuntu. Here are the steps. Find your package in /var/lib/dpkg/info, for example … Read more

How to update-alternatives to Python 3 without breaking apt?

Per Debian policy, python refers to Python 2 and python3 refers to Python 3. Don’t try to change this system-wide or you are in for the sort of trouble you already discovered. Virtual environments allow you to run an isolated Python installation with whatever version of Python and whatever libraries you need without messing with … Read more

How do you run `apt-get` in a dockerfile behind a proxy?

UPDATE: You have wrong capitalization of environment variables in ENV. Correct one is http_proxy. Your example should be: FROM ubuntu:13.10 ENV http_proxy <HTTP_PROXY> ENV https_proxy <HTTPS_PROXY> RUN apt-get update && apt-get upgrade or FROM centos ENV http_proxy <HTTP_PROXY> ENV https_proxy <HTTPS_PROXY> RUN yum update All variables specified in ENV are prepended to every RUN command. … Read more

E: Repository ‘http://dl.google.com/linux/chrome/deb stable Release’ changed its ‘Origin’ value from ‘Google, Inc.’ to ‘Google LLC’ [closed]

Solution Run: $ sudo apt update Note this is apt and not apt-get Then enter y to accept the change: E: Repository ‘http://dl.google.com/linux/chrome/deb stable Release’ changed its ‘Origin’ value from ‘Google, Inc.’ to ‘Google LLC’ N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details. Do … Read more

E: Unable to locate package npm

From the official Node.js documentation: A Node.js package is also available in the official repo for Debian Sid (unstable), Jessie (testing) and Wheezy (wheezy-backports) as “nodejs”. It only installs a nodejs binary. So, if you only type sudo apt-get install nodejs , it does not install other goodies such as npm. You need to type: … Read more