Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

can't install latest packer #13038

Closed
ozbillwang opened this issue Jun 11, 2024 · 3 comments
Closed

can't install latest packer #13038

ozbillwang opened this issue Jun 11, 2024 · 3 comments
Labels

Comments

@ozbillwang
Copy link

ozbillwang commented Jun 11, 2024

can't install packer in ubuntu 18.04. The same commands are fine last month

follow the official document: https://developer.hashicorp.com/packer/tutorials/docker-get-started/get-started-install-cli

$ apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
Hit:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease
Ign:3 https://apt.releases.hashicorp.com bionic InRelease
Hit:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Err:5 https://apt.releases.hashicorp.com bionic Release
  404  Not Found [IP: 18.67.93.76 443]
Hit:6 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Reading package lists... Done
E: The repository 'https://apt.releases.hashicorp.com bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

If I ignore the error (404 Not Found [IP: 18.67.93.76 443]), I can't install the latest packer

$ sudo apt-get update && sudo apt-get install packer
$ packer version
Packer v1.0.4
$  apt-get install -y packer=1.9.1-1
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Version '1.9.1-1' for 'packer' was not found
$ apt-get install -y packer=1.11.0-1
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Version '1.11.0-1' for 'packer' was not found
@ozbillwang ozbillwang added the bug label Jun 11, 2024
@sabuncumurat
Copy link

@ozbillwang
Copy link
Author

ozbillwang commented Jun 12, 2024

Thanks, @sabuncumurat this confirmed the issue.

I finally fixed the issue with another approach.

      sudo apt install -y unzip
      sudo wget https://releases.hashicorp.com/packer/1.11.0/packer_1.11.0_linux_amd64.zip
      sudo unzip packer_1.11.0_linux_amd64.zip
      sudo chmod +x packer
      sudo mv packer /usr/bin/packer
      packer version

Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants