Package Manager will not run - error: BrokenCount >0

Asked by Mike

Package manager notified me that there was updates to the newest version of Ubuntu ready to install but when I went to install the packages, package manager appeared to lock up. Now I can not run package manager and I get the message: "error: BrokenCount >0". Package manager appears to want to start but neaver opens. I've tried to run the "sudo dpkg --audit" command to try and see which package have unmet dependencies. This was suggested from a response to a simular question but when I run the command I get an error "unable to resolve host" message.

this a slow go learning to deal with Linux but your assistance has always got me through.

Thanks...

It appears that after trying the suggestions presented that the core problem is I CAN NOT log in with root privilages. When ever I try to log in it justs defaults to my user privilages.

Anyone got an idea how I can gain access to root privilages?

Mike

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Murali Krishna Marimekala
Solved:
Last query:
Last reply:
Revision history for this message
Pramod Dematagoda (pmdematagoda) said :
#1

Seems like you may have a hosts problem, post the output of:-
hostname
and
cat /etc/hosts

Revision history for this message
Best Murali Krishna Marimekala (murali-marimekala) said :
#2

Mike,

Do $sudo dpkg --configure -a

You will then be asked for your login password.

Hope this helps.

Revision history for this message
Mike (kincanonmi) said :
#3

When I execute the $sudo dpkg --configure -a I get the following message:

mike@Mustang:~$ $sudo dpkg --configure -a
dpkg: requested operation requires superuser privilege
mike@Mustang:~$

Still can't get package manager to run.

Got any more ideas/

Revision history for this message
Mike (kincanonmi) said :
#4

In response to Pramod Dematagoda this is the out put from the host command the cat /etc/hosts command:

mike@Mustang:~$ clear
mike@Mustang:~$ host
Usage: host [-aCdlriTwv] [-c class] [-N ndots] [-t type] [-W time]
            [-R number] [-m flag] hostname [server]
       -a is equivalent to -v -t ANY
       -c specifies query class for non-IN data
       -C compares SOA records on authoritative nameservers
       -d is equivalent to -v
       -l lists all hosts in a domain, using AXFR
       -i IP6.INT reverse lookups
       -N changes the number of dots allowed before root lookup is done
       -r disables recursive processing
       -R specifies number of retries for UDP packets
       -s a SERVFAIL response should stop query
       -t specifies the query type
       -T enables TCP/IP mode
       -v enables verbose output
       -w specifies to wait forever for a reply
       -W specifies how long to wait for a reply
       -4 use IPv4 query transport only
       -6 use IPv6 query transport only
       -m set memory debugging flag (trace|record|usage)
mike@Mustang:~$ cat/etc/host
bash: cat/etc/host: No such file or directory
mike@Mustang:~$ cat /etc/host
cat: /etc/host: No such file or directory
mike@Mustang:~$ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 Mustang.IronHorse

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
mike@Mustang:~$ clear

mike@Mustang:~$ host
Usage: host [-aCdlriTwv] [-c class] [-N ndots] [-t type] [-W time]
            [-R number] [-m flag] hostname [server]
       -a is equivalent to -v -t ANY
       -c specifies query class for non-IN data
       -C compares SOA records on authoritative nameservers
       -d is equivalent to -v
       -l lists all hosts in a domain, using AXFR
       -i IP6.INT reverse lookups
       -N changes the number of dots allowed before root lookup is done
       -r disables recursive processing
       -R specifies number of retries for UDP packets
       -s a SERVFAIL response should stop query
       -t specifies the query type
       -T enables TCP/IP mode
       -v enables verbose output
       -w specifies to wait forever for a reply
       -W specifies how long to wait for a reply
       -4 use IPv4 query transport only
       -6 use IPv6 query transport only
       -m set memory debugging flag (trace|record|usage)
mike@Mustang:~$ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 Mustang.IronHorse

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
mike@Mustang:~$

I didn't mention that I'm running version 8.1.0 and all this started when I tried to install updates.

Hope someones got more ideas.

Mike

Revision history for this message
Murali Krishna Marimekala (murali-marimekala) said :
#5

Hi Mike,

Its simple, just login as root and

mike@Mustang:~$ $su
Enter root password:
root@Mustang:~$ $sudo dpkg --configure -a

If you dont have root password do

$sudo passwd

and create one.

-Murali-

Revision history for this message
Mike (kincanonmi) said :
#6

Thanks Murali Krishna Marimekala, that solved my question.

Revision history for this message
Mike (kincanonmi) said :
#7

Thanks for everyone assistance. Being new to Linux is a tying experience but having a place to turn for help is making it easier.

Mike