Upgrading Linux on a docker-compose --build install - linux

I am trying to run an openboxes docker installation but it won't install because of it being based on Jasper and it having issues being able to install software because of the distribution not being available. It just fails during the apt-get operations. I have tried all the fixes but just getting on a newer version of the operation system probably would work. How can I do this. How can I have it upgrade the Linux from Jasper to the latest or 19.xx during the docker-compose --build part of the installation?
Any help would be appreciated.
The errors I am getting but cannot resolve:
Step 4/15 : RUN apt-get update && apt-get install -y unzip zip
curl wget git && rm -rf /var/lib/apt/lists/*
---> Running in 52238d44699d Err http://security.debian.org jessie/updates InRelease
Err http://deb.debian.org jessie InRelease
Err http://deb.debian.org jessie Release.gpg Temporary failure
resolving 'deb.debian.org' Err http://security.debian.org
jessie/updates Release.gpg Temporary failure resolving
'security.debian.org' Reading package lists... W: Failed to fetch
http://deb.debian.org/debian/dists/jessie/InRelease
W: Failed to fetch
http://security.debian.org/debian-security/dists/jessie/updat
es/InRelease
W: Failed to fetch
http://security.debian.org/debian-security/dists/jessie/updat
es/Release.gpg Temporary failure resolving 'security.debian.org'
W: Failed to fetch
http://deb.debian.org/debian/dists/jessie/Release.gpg Tempor
ary failure resolving 'deb.debian.org'
W: Some index files failed to download. They have been ignored, or old
ones used instead. Reading package lists... Building
dependency tree... Reading state information... Package zip 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 'zip' has no installation candidate ERROR: Service 'grails'
failed to build: The command '/bin/sh -c apt-get update &&
apt-get install -y unzip zip curl wget git &&
rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100

I wish I could delete my original post. I couldn't find a way to do it but did find another docker implementation and was able to use that instead. Thank you for your interest in helping.

Related

Why my local PC can connect to deb.debian.org but my Dockerfile can not?

I'm trying to create a docker image. Here's my Dockerfile:
FROM mcr.microsoft.com/dotnet/aspnet:6.0
RUN apt update \
&& apt install -y apt-utils libgdiplus libc6-dev \
&& apt install -y procps
COPY . /Api
WORKDIR /Api
CMD [ "dotnet", "Api.dll" ]
When I run the docker build command, I see this error:
Step 1/5 : FROM mcr.microsoft.com/dotnet/aspnet:6.0
---> 914094d6a4a0
Step 2/5 : RUN apt update && apt install -y apt-utils libgdiplus libc6-dev && apt install -y procps
---> Running in 5e738881ba2b
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Err:1 http://deb.debian.org/debian bullseye InRelease
Temporary failure resolving 'deb.debian.org'
Err:2 http://deb.debian.org/debian-security bullseye-security InRelease
Temporary failure resolving 'deb.debian.org'
Err:3 http://deb.debian.org/debian bullseye-updates InRelease
Temporary failure resolving 'deb.debian.org'
Reading package lists...
Building dependency tree...
Reading state information...
All packages are up to date.
W: Failed to fetch http://deb.debian.org/debian/dists/bullseye/InRelease Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://deb.debian.org/debian-security/dists/bullseye-security/InRelease Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://deb.debian.org/debian/dists/bullseye-updates/InRelease Temporary failure resolving 'deb.debian.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
Package apt-utils 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
However the following packages replace it:
apt
E: Package 'apt-utils' has no installation candidate
E: Unable to locate package libgdiplus
E: Unable to locate package libc6-dev
The command '/bin/sh -c apt update && apt install -y apt-utils libgdiplus libc6-dev && apt install -y procps' returned a non-zero code: 100
But when I open the http://deb.debian.org/debian/dists/bullseye/InRelease in my local browser, I can see it. And when I nslookup deb.debian.org I can see the answer immediately.
Why my Dockerfile can not access deb.debian.org, while my local PC can?
How can I make Dockerfile to use my local network during the build process?

Error when installing Terraform Err:5 404 Not Found

I am using LMDE 4 Debbie and I am trying to install Terraform on my laptop
I am following steps defined in https://learn.hashicorp.com/tutorials/terraform/install-cli
And when I run sudo apt updated I am getting the following error
Err:5 https://apt.releases.hashicorp.com debbie Release
404 Not Found [IP: 2a04:4e42:25::561 443]
and also when I try to install it says not found
$ sudo apt install terraform
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package terraform
debbie is likely the return of lsb_release -cs, and you need to replace that with a valid Debian distribution to subscribe to an existing apt repo. LMDE 4 is based on buster, so you can use the command:
sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com buster main"
instead of the return of lsb_release -cs for the distro. That should fix your issue.

How to fix "Failed to fetch" error on "apt-get update" (Docker)

Every time I do "apt-get update" I get the error that my vps failed to fetch "https://download.docker.com".
I tried to remove docker because I don't need it anymore but the error still shows.
How do I remove this program from being updated or how do I remove it completely?
I have already displayed all my installed packages and I tried to remove Docker completely.
This is the result of "apt-get update":
Ign https://download.docker.com jessie Release
Hit http://download.webmin.com sarge/contrib amd64 Packages
Err https://download.docker.com jessie/stable amd64 Packages
HttpError404
Fetched 6,177 B in 4s (1,520 B/s)
W: Failed to fetch https://download.docker.com/linux/ubuntu/dists/jessie/stable/binary-amd64/Packages HttpError404
E: Some index files failed to download. They have been ignored, or old ones used instead."```
To remove your package completely and everything related to it's name you need to execute:
sudo apt-get purge docker OR sudo apt-get remove --purge docker
This will remove about everything regarding the package docker, but not the dependencies installed with it on installation
Now, the recomended way to resolve your problem is putting your package on hold:
sudo apt-mark hold docker

Cannot install git on Linux Mint 17.3

I'm trying to install git for several hours but whatever I do I get this error:
sudo apt-get install git
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
git : Depends: liberror-perl but it is not installable
E: Unable to correct problems, you have held broken packages.
I've read answers here and I've tried the following without success:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -f
I've tried solution from here:
https://superuser.com/questions/899311/apt-get-error-when-installing-git
I removed everything in /var/lib/apt/lists/* and ran sudo apt-get update
I also tried to install liberror-perl and then the folllowing error:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package liberror-perl 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 'liberror-perl' has no installation candidate
How could fix this issue with packages? Thanks.
Updated: Now I tried to install another package and I got the same error:
Package 'devscripts' has no installation candidate
Have you tried following the directions in this link?
https://tecadmin.net/install-git-on-ubuntu/
$ sudo add-apt-repository ppa:git-core/ppa
$ sudo apt-get update
$ sudo apt-get install git

sudo apt-get update fails on postgresql

I am trying to install nodejs but it keeps on failing. So I have uninstalled nodejs and found out that sudo apt-get update still fails. It's been so long that I have used postgresql. but here is my error during sudo apt-get update:
Get:41 http://ph.archive.ubuntu.com vivid-updates/universe Translation-en [81.6 kB]
Err http://apt.postgresql.org precise-pgdg InRelease
Err http://apt.postgresql.org precise-pgdg Release.gpg
Cannot initiate the connection to apt.postgresql.org:80 (2a00:f10:111:50::228). - connect (101: Network is unreachable) [IP: 2a00:f10:111:50::228 80]
Fetched 14.4 MB in 6min 3s (39.5 kB/s)
Reading package lists... Done
W: Failed to fetch http://apt.postgresql.org/pub/repos/apt/dists/precise-pgdg/InRelease
W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)
W: Failed to fetch http://ppa.launchpad.net/chris-lea/node.js/ubuntu/dists/vivid/main/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/chris-lea/node.js/ubuntu/dists/vivid/main/binary-i386/Packages 404 Not Found
W: Failed to fetch http://apt.postgresql.org/pub/repos/apt/dists/precise-pgdg/Release.gpg Cannot initiate the connection to apt.postgresql.org:80 (2a00:f10:111:50::228). - connect (101: Network is unreachable) [IP: 2a00:f10:111:50::228 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.
As you can see, the first line succeeded and the rest of updates above it. The error started on the second line. I do not know where else to go. Please help me.
I could not proceed with anything since sudo apt-get update has a problem.
Try this:
sudo apt-get update
sudo apt-get install -y build-essential
sudo apt-get install curl
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
sudo apt-get install -y nodejs

Resources