The package bind9-host needs to be reinstalled
Currently, I am using Ubuntu 14.04. Whenever I am going to install anything, it shows
"E: The package bind9-host needs to be reinstalled, but I can't find an archive for it."
I also tried to reinstall using "sudo apt-get install --reinstall -f bind9". For this case, I am getting the same error.
This becomes a serious issue since I am not able to install anything.
Can you please help me?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu bind9 Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- soumen roy
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
For diagnostic purposes please provide the output that you receive for the commands
uname -a
lsb_release -crid
sudo dpkg --audit
apt-cache policy bind9-host
dpkg -l | grep bind9-host
Revision history for this message
|
#2 |
Thanks for the response. I have shared the corresponding output below
$ uname -a
Linux roy 4.4.0-142-generic #168~14.04.1-Ubuntu SMP Sat Jan 19 11:26:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
$ sudo dpkg --audit
The following packages are in a mess due to serious problems during
installation. They must be reinstalled for them (and any packages
that depend on them) to function properly:
bind9-host Version of 'host' bundled with BIND 9.X
The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
bind9-dbgsym debug symbols for bind9
$ apt-cache policy bind9-host
bind9-host:
Installed: 1:9.9.5.
Candidate: 1:9.9.5.
Version table:
*** 1:9.9.5.
100 /var/lib/
$ dpkg -l | grep bind9-host
pHR bind9-host 1:9.9.5.
Revision history for this message
|
#3 |
I suggest that you try the following commands:
wget http://
sudo dpkg -i bind9-host_
Additionally you seem to have an error in the configuration of the package management system. The "apt-cache ..." command did not show any repository for the bind9-host package, which is strange.
What is the output of the commands
cat -n /etc/apt/
sudo apt-get update
Revision history for this message
|
#4 |
I have installed it from the following link.
Output from the commands:
$ cat -n /etc/apt/
1 # deb cdrom:[Ubuntu 14.04.4 LTS _Trusty Tahr_ - Release amd64 (20160217.1)]/ trusty main restricted
2 deb-src http://
3
4 # See http://
5 # newer versions of the distribution.
6 deb http://
7 deb-src http://
8
9 ## Major bug fix updates produced after the final release of the
10 ## distribution.
11 deb http://
12 deb-src http://
13
14 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
15 ## team. Also, please note that software in universe WILL NOT receive any
16 ## review or updates from the Ubuntu security team.
17 deb http://
18 deb http://
19
20 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
21 ## team, and may not be under a free licence. Please satisfy yourself as to
22 ## your rights to use the software. Also, please note that software in
23 ## multiverse WILL NOT receive any review or updates from the Ubuntu
24 ## security team.
25 deb http://
26 deb http://
27
28 ## N.B. software from this repository may not have been tested as
29 ## extensively as that contained in the main release, although it includes
30 ## newer versions of some applications which may provide useful features.
31 ## Also, please note that software in backports WILL NOT receive any review
32 ## or updates from the Ubuntu security team.
33 deb http://
34 deb-src http://
35
36 deb http://
37 deb-src http://
38 deb http://
39 deb http://
40
41 ## Uncomment the following two lines to add software from Canonical's
42 ## 'partner' repository.
43 ## This software is not part of Ubuntu, but is offered by Canonical and the
44 ## respective vendors as a service to Ubuntu users.
45 # deb http://
46 # deb-src http://
47
48 ## This software is not part of Ubuntu, but is offered by third-party
49 ## developers who want to ship their latest software.
50 deb http://
51 deb-src http://
$ sudo apt-get update
Ign http://
Hit http://
Ign http://
Ign http://
Get:1 http://
Hit http://
Ign http://
Hit http://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Get:2 http://
Hit http://
Hit https:/
Hit https:/
Hit http://
Hit https:/
Get:3 http://
Ign http://
Get:4 http://
Hit http://
Hit http://
Hit http://
Get:5 https:/
Hit http://
Hit http://
Get:6 https:/
Hit http://
Hit https:/
Hit http://
Hit http://
Get:7 https:/
Hit http://
Hit http://
Get:8 https:/
Hit http://
Hit https:/
Hit http://
Hit http://
Get:9 https:/
Hit http://
Hit http://
Hit https:/
Get:10 https:/
Hit http://
Ign http://
Get:11 https:/
Hit http://
Get:12 https:/
Hit http://
Get:13 https:/
Ign http://
Hit http://
Get:14 https:/
Ign https:/
Get:15 https:/
Ign https:/
Ign https:/
Ign https:/
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Ign http://
Ign http://
Ign http://
Ign http://
100% [Waiting for headers] [Waiting for headers]
The update process is hanging here.
After installing the package from your specified link, I tried to install an arbitrary package, the output is below:
$ sudo apt-get install idle
Reading package lists... Done
Building dependency tree
Reading state information... Done
idle is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
bind9-dbgsym : Depends: bind9 (= 1:9.11.
light-themes : Depends: ubuntu-mono but it is not installable
ubuntu-artwork : Depends: ubuntu-mono but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Revision history for this message
|
#5 |
If the command "sudo apt-get update" is not complete, then you are missing information about available packages.
You have to make sure that this command finishes without error. I suggest that you repeat this command, eventually several times.
Afterwards please provide the output of the command
apt-cache policy bind9-dbgsym bind9 light-themes ubuntu-mono ubuntu-artwork
Revision history for this message
|
#6 |
After installing the following link of bind9-host, I have run "sudo apt-get update" for several times and then I was able to update the system. Now the problem is solved.
Thanks for your valuable time.