Error when installing Terraform Err:5 404 Not Found - terraform

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.

Related

Docker won't install on Ubuntu 18.04

I'm trying to install according to the instructions.
Error when trying to install:
# sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin
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:
containerd.io : Depends: libseccomp2 (>= 2.5.0) but 2.4.3-1ubuntu3.18.04.3 is to be installed
E: Unable to correct problems, you have held broken packages.
OS:
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic
# apt-get upgrade && apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Docker repo:
# cat /etc/apt/sources.list.d/docker.list
deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu bionic stable
I tried to find information on how to update libseccomp2 for Ubuntu 18.04 but didn't find anything. Has anyone encountered such a problem?
I encountered the same issue and built it from source.
Uncomment the deb-src lines from /etc/apt/sources.list, then:
mkdir foo && cd foo
sudo apt-get update
sudo apt build-dep libseccomp2
apt-get source --compile libseccomp2
sudo dpkg -i libseccomp2_*.deb
It runs a lot of tests after the build which is time consuming. To skip those you add this before the apt-get source step:
export DEB_BUILD_OPTIONS=nocheck
After that, I was able to install Docker.

how to fix winehq-stable : Depends: wine-stable (= 6.0.2~hirsute-1)?

i am running Feren Os a branch of Ubuntu and I have a new problem while installing Winehq
the system is up to date and all packages upgrade except for one .
$ sudo apt list --upgradable
Listing... Done
vkd3d-compiler/hirsute 1.2~hirsute-1 i386 [upgradable from: 1.2~focal-1]
N: There is 1 additional version. Please use the '-a' switch to see it
system info
wine Problem
$ sudo apt install --install-recommends winehq-stable
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:
winehq-stable : Depends: wine-stable (= 6.0.2~hirsute-1)
E: Unable to correct problems, you have held broken packages.
I have tried
$ sudo dpkg --force depends -P wine-stable
dpkg: warning: ignoring request to remove wine-stable which isn't installed
$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
You have mixed Feren Os based on Ubuntu Focal with Ubuntu Hirsute leading to the unmet dependencies error.
To fix this problem, you need to remove hirsute from /etc/apt/sources.list and the files under /etc/apt/sources.list.d/ dir.
To install winehq see the documentation and use the focal codename.
If you have an issue with vkd3d, it can be installed from Cybermax PPA..
Synaptic -> removed all wine repositories
sudo dpkg --add-architecture i386
sudo apt update
Removing previous WineHQ repository:
sudo apt-add-repository -r 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
Adding other repositories:
wget -q https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/Release.key -O Release.key -O- | sudo apt-key add -
sudo apt-add-repository 'deb https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/ ./'
sudo apt-get update
But!
The final suggested step with wine-stable:
sudo apt install --install-recommends **winehq-devel**
.. This worked for me on kali after having trouble installing wine

Upgrading Linux on a docker-compose --build install

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.

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

not able to install freeipa-server on ubuntu

I am trying to install freeipa-server on ubuntu but not getting it installed as i am getting below error:
sudo apt-get install freeipa-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package freeipa-server
I have tried it on ubuntu 14.04 and also on ubuntu 16.04 but no luck. freeipa-client gets installed fine but not freeipa-server. Any idea how can i get this resolved?
Many Thanks,
Deepak
The package seems to be available for 16.04 only. It's in universe, so please make sure you have it marked under "Software & Updates" and run sudo apt update.
To add the repository you can also edit /etc/apt/sources.list or invoke:
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"

Resources