Is it possible to answer dialog questions when installing under docker?

See the discussion here: https://github.com/docker/docker/issues/4032. In short, setting ENV DEBIAN_FRONTEND noninteractive is not recommended as it persists in the final image, even when running something like docker run -i -t … bash. Therefore it is recommended either to omit DEBIAN_FRONTEND and live with the warning, or specify it explicitly for each command e.g. RUN DEBIAN_FRONTEND=noninteractive … Read more

How to download all dependencies and packages to directory

The marked answer has the problem that the available packages on the machine that is doing the downloads might be different from the target machine, and thus the package set might be incomplete. To avoid this and get all dependencies, use the following: apt-get download $(apt-rdepends <package>|grep -v “^ “) Some packages returned from apt-rdepends … Read more

E: The repository ‘http://ppa.launchpad.net/certbot/certbot/ubuntu focal Release’ does not have a Release file

I got rid of the error message on Ubuntu 20.04 by removing the ppa repository. It took me a long time to find out the exact command argument, so this might help others :-). I used the command: sudo apt-add-repository -r ppa:certbot/certbot After that, the following commands do not generate any errors: sudo apt update … 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

Docker build “Could not resolve ‘archive.ubuntu.com'” apt-get fails to install anything

Uncommenting DOCKER_OPTS=”–dns 8.8.8.8 –dns 8.8.4.4″ in /etc/default/docker as Matt Carrier suggested did NOT work for me. Nor did putting my corporation’s DNS servers in that file. But, there’s another way (read on). First, let’s verify the problem: $ docker run –rm busybox nslookup google.com # takes a long time nslookup: can’t resolve ‘google.com’ # <— … Read more

Docker Repository Does Not Have a Release File on Running apt-get update on Ubuntu

On Linux Mint, the official instructions did not work for me. I had to go into /etc/apt/sources.list.d/additional-repositories.list and change serena to xenial to reflect my Ubuntu codename. Depending on your Debian variant, version, and the original installation method followed, you may need to modify /etc/apt/sources.list.d/docker.list instead. You can typically find the appropriate codename by running … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)