Score:0

Unable to locate package net-tools

jm flag

I wanted to install dhcp server. When I typed ifconfig it says,command not found but can be installed with sudo apt install net-tools. Then I did so. Results were

Reading package lists... Done
Building dependency tree...Done
Reading state information...Done
E: Unable to locate package net-tools

I updated cache. Then checked the repository in my ubuntu version whether it has or not that particular package. I got something like this.

jammy (22.04LTS) (net): NET-3 networking toolkit
1.60+git20181103.0eebece-1ubuntu5: amd64 arm64 armhf i386 ppc64el s390x

I can't figure it out whether it is in universe or multiverse repository. And how to solve this after this.

ru flag
`ifconfig` has been retired from default installation because Netplan is now in use instead of `ifupdown`, a change that's been in place for a while now. What `ifconfig` command were you trying to run? There may be equivalent `ip` commands to execute, or you may not even need to execute any special `ifconfig` command options.
Artur Meinild avatar
vn flag
Please list contents of your `/etc/apt/sources.list`
Nuwanthi Karunarathne avatar
jm flag
It says permutation denied.
Score:0
vn flag

For me apt policy net-tools gives:

net-tools:
  Installed: 1.60+git20181103.0eebece-1ubuntu5
  Candidate: 1.60+git20181103.0eebece-1ubuntu5
  Version table:
 *** 1.60+git20181103.0eebece-1ubuntu5 500
        500 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages
        100 /var/lib/dpkg/status

So it's in the main repository. Did you run sudo apt update after changing repositories?

Also see here.

Nuwanthi Karunarathne avatar
jm flag
Yes I did. Problem is solved. Thank you
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.