Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Multiple sources in apt #712

Closed
OhMyMndy opened this issue Jan 6, 2023 · 1 comment
Closed

Multiple sources in apt #712

OhMyMndy opened this issue Jan 6, 2023 · 1 comment

Comments

@OhMyMndy
Copy link
Contributor

OhMyMndy commented Jan 6, 2023

When installing Terraform and Nomad through deb-get, they both add the same HashiCorp repository, but in different files.

This means that you can install Nomad by installing Terraform through deb-get and then plain apt to install other HashiCorp tools (Nomad, Consul, Waypoint).
Waypoint and Nomad are not in deb-get, but can be installed as a result of adding the HashiCorp repository by installing Nomad or Terraform through deb-get.

deb-get install terraform

# this works because installing Terraform adds the HashiCorp apt repository
apt-get install waypoint -y

How to reproduce

Install Terraform through deb-get

deb-get install terraform

Install Nomad through deb-get

deb-get install nomad

Output of deb-get install nomad

deb [arch=amd64] https://apt.releases.hashicorp.com focal main
Hit:1 https://packages.microsoft.com/repos/microsoft-ubuntu-focal-prod focal InRelease
Hit:2 https://apt.releases.hashicorp.com focal InRelease
Hit:3 https://dl.yarnpkg.com/debian stable InRelease
Hit:4 https://repo.anaconda.com/pkgs/misc/debrepo/conda stable InRelease
Hit:5 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:6 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:7 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:8 http://security.ubuntu.com/ubuntu focal-security InRelease
Hit:9 https://packagecloud.io/github/git-lfs/ubuntu focal InRelease
Reading package lists...
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/nomad.list:1 and /etc/apt/sources.list.d/terraform.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/nomad.list:1 and /etc/apt/sources.list.d/terraform.list:1
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/nomad.list:1 and /etc/apt/sources.list.d/terraform.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/nomad.list:1 and /etc/apt/sources.list.d/terraform.list:1
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/nomad.list:1 and /etc/apt/sources.list.d/terraform.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/nomad.list:1 and /etc/apt/sources.list.d/terraform.list:1
Selecting previously unselected package nomad.
(Reading database ... 68620 files and directories currently installed.)
Preparing to unpack .../nomad_1.4.3-1_amd64.deb ...
Unpacking nomad (1.4.3-1) ...
Setting up nomad (1.4.3-1) ...
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/nomad.list:1 and /etc/apt/sources.list.d/terraform.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/nomad.list:1 and /etc/apt/sources.list.d/terraform.list:1

When trying to fix this, turns out it is already in main and fixed by #643 which has not been released.

@OhMyMndy
Copy link
Contributor Author

OhMyMndy commented Jan 6, 2023

Closed, will be into the next release (from main) of deb-get

@OhMyMndy OhMyMndy closed this as completed Jan 6, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant