Code: Select all
~bash: command not found
how can I install the package to use nslookup and dig?
Thanks
Code: Select all
~bash: command not found
Code: Select all
sudo apt-get install dnsutils
Code: Select all
sudo apt-get update
Code: Select all
sudo apt-get install dnsutils
I had the exact same issue that the original poster had 3 years later, and found this page looking for a solution. I thought someone else might have the same problem and figured it couldn't hurt to keep the solution updated.B.Goode wrote:The person making the enquiry hasn't logged in for 3 years...
CrazyEvan wrote:To get dnsutils to work, I had to first do aprior toCode: Select all
sudo apt-get update
which then worked fine, and nslookup was up and running.Code: Select all
sudo apt-get install dnsutils
Code: Select all
pi@raspberrypi:/ $ date
Tue 20 Dec 12:52:46 UTC 2016
pi@raspberrypi:/ $ uname -a
Linux raspberrypi 4.4.34-v7+ #930 SMP Wed Nov 23 15:20:41 GMT 2016 armv7l GNU/Linux
pi@raspberrypi:/ $ nslookup
-bash: nslookup: command not found
pi@raspberrypi:/ $ dig
-bash: dig: command not found
So can't you just install it?fsr wrote:current jessie raspian is missing dnsutils.
Code: Select all
pi@raspberrypi:/ $ date Tue 20 Dec 12:52:46 UTC 2016 pi@raspberrypi:/ $ uname -a Linux raspberrypi 4.4.34-v7+ #930 SMP Wed Nov 23 15:20:41 GMT 2016 armv7l GNU/Linux pi@raspberrypi:/ $ nslookup -bash: nslookup: command not found pi@raspberrypi:/ $ dig -bash: dig: command not found
Code: Select all
apt-get install dnsutils
apt-get update
apt-get install dnsutils
Code: Select all
apt-get install dnsutils
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libproxy-tools vlc-plugin-pulse
Use 'apt-get autoremove' to remove them.
Suggested packages:
rblcheck
The following NEW packages will be installed:
dnsutils
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 114 kB of archives.
After this operation, 361 kB of additional disk space will be used.
Err http://mirrordirector.raspbian.org/raspbian/ jessie/main dnsutils armhf 1:9.9.5.dfsg-9+deb8u14
404 Not Found [IP: 93.93.128.193 80]
E: Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/b/bind9/dnsutils_9.9.5.dfsg-9+deb8u14_armhf.deb 404 Not Found [IP: 93.93.128.193 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
root@raspberrypi:~# apt-get update