Iḿ trying to run the command
ifconfig
The output is:
Command 'ifconfig' not found, did you mean:
command 'iconfig' from deb ipmiutil (3.1.5-1)
command 'pifconfig' from deb python3-ethtool (0.14-3build1)
command 'fconfig' from deb redboot-tools (0.7build3)
Try: sudo apt install <deb name>
I tried to install it via:
sudo apt-get install net-tools
But didn't work:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package net-tools 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 'net-tools' has no installation candidate
I'm running Ubuntu 20-04, and searched on ubuntu.packages.com and found this result:
What am I doing wrong?
Update
I was able to solve the problem following this topic:
What does "Package <package> has no installation candidate" mean?
Thank you all for the replies.
sudo apt update
before trying to install thenet-tools
package? – Terrance Jul 07 '20 at 14:22apt update
recently? It sounds like you installed but didn't update your repository data, and this is a Common Occurrence unfortunately. – Thomas Ward Jul 07 '20 at 15:26sudo apt update
? Sounds like your repositories are not correct or something is wrong with them. I have 20.04 in a VM and it does shownet-tools
for install and it is installed. – Terrance Jul 08 '20 at 14:02