unable to locate package lshw

ahamed

New Member
Jul 27, 2023
5
0
1
I get an error when I type "apt install lshw" in my proxmox console.


Would anyone be able to help me?
 
Well..., it would help if you tell us which error you got ;-)


For me it is in "main":
Code:
~# apt policy lshw
lshw:
  Installed: 02.18.85-0.7
  Candidate: 02.18.85-0.7
  Version table:
 *** 02.18.85-0.7 500
        500 http://ftp.de.debian.org/debian bullseye/main amd64 Packages

Which repositories are configured on your system? And did you run "apt update" in beforehand?

Please post the output (in [CODE]-tags) of the command from above and from this:
Code:
 head -n-0 /etc/apt/sources.list /etc/apt/sources.list.d/*
 
I happen to have the exact same problem.

Code:
apt install lshw
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package lshw

Any idea why this could be the case?

Also apt update fails.
Code:
apt update
Ign:1 http://ftp.at.debian.org/debian bookworm InRelease
Ign:2 http://ftp.at.debian.org/debian bookworm-updates InRelease
Ign:3 http://security.debian.org bookworm-security InRelease
Ign:4 http://download.proxmox.com/debian/pve bookworm InRelease
Ign:5 http://download.proxmox.com/debian/ceph-quincy bookworm InRelease
Ign:1 http://ftp.at.debian.org/debian bookworm InRelease
Ign:2 http://ftp.at.debian.org/debian bookworm-updates InRelease
Ign:3 http://security.debian.org bookworm-security InRelease
Ign:4 http://download.proxmox.com/debian/pve bookworm InRelease
Ign:5 http://download.proxmox.com/debian/ceph-quincy bookworm InRelease
Ign:1 http://ftp.at.debian.org/debian bookworm InRelease
Ign:2 http://ftp.at.debian.org/debian bookworm-updates InRelease
Ign:4 http://download.proxmox.com/debian/pve bookworm InRelease
Ign:3 http://security.debian.org bookworm-security InRelease
Ign:5 http://download.proxmox.com/debian/ceph-quincy bookworm InRelease
Err:1 http://ftp.at.debian.org/debian bookworm InRelease
  Temporary failure resolving 'ftp.at.debian.org'
Err:2 http://ftp.at.debian.org/debian bookworm-updates InRelease
  Temporary failure resolving 'ftp.at.debian.org'
Err:3 http://security.debian.org bookworm-security InRelease
  Temporary failure resolving 'security.debian.org'
Err:4 http://download.proxmox.com/debian/pve bookworm InRelease
  Temporary failure resolving 'download.proxmox.com'
Err:5 http://download.proxmox.com/debian/ceph-quincy bookworm InRelease
  Temporary failure resolving 'download.proxmox.com'
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://ftp.at.debian.org/debian/dists/bookworm/InRelease  Temporary failure resolving 'ftp.at.debian.org'
W: Failed to fetch http://ftp.at.debian.org/debian/dists/bookworm-updates/InRelease  Temporary failure resolving 'ftp.at.debian.org'
W: Failed to fetch http://security.debian.org/dists/bookworm-security/InRelease  Temporary failure resolving 'security.debian.org'
W: Failed to fetch http://download.proxmox.com/debian/pve/dists/bookworm/InRelease  Temporary failure resolving 'download.proxmox.com'
W: Failed to fetch http://download.proxmox.com/debian/ceph-quincy/dists/bookworm/InRelease  Temporary failure resolving 'download.proxmox.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
 
Last edited:
Just for the record: in August I was still using Bullseye. Meanwhile I am on Bookworm = PVE Version 8 and "lshw" is still present in "main":

Code:
~# apt policy lshw
lshw:
  Installed: (none)
  Candidate: 02.19.git.2021.06.19.996aaad9c7-2+b1
  Version table:
     02.19.git.2021.06.19.996aaad9c7-2+b1 500
        500 http://ftp.de.debian.org/debian bookworm/main amd64 Packages

So..., as long as you have outbound connectivity and DNS does do it's job, it should be installable.
 
  • Like
Reactions: treblio
Thank you very much! Both of you.
Now it works just fine.
I did not set up my DNS properly. A typo had my going nuts and I had to come back with your advice to be able to see it.
 
  • Like
Reactions: Azunai333 and UdoB

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!