Computer (laptop) slows down or freezes. The update manager cannot be read.

Asked by John Gade

Computer very slow or freezing while initalizing Update Manager. Get message (English part): Read (5:Input/output error).
The complete message in Danish runs: 'E:læsefejl - read (5:Input/output error), E:Pakkelisterne eller statusfilen kunne ikke tolkes eller åbnes.
When Update Manager is closed down, laptop runs fair, but has occasionally problems loading internet pages, usually says that server could not be found.

What to do?

John Gade, Viborg, Denmark.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu update-manager Edit question
Assignee:
No assignee Edit question
Solved by:
John Gade
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
sudo rm -rf /var/lib/dpkg/updates/*
sudo rm -rf /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists/partial
sudo apt-get clean
sudo apt-get update
sudo dpkg --clear-avail
sudo dpkg --configure -a
sudo apt-get install -f
sudo apt-get update
sudo apt-get dist-upgrade

May help

Revision history for this message
John Gade (gade-john) said :
#2

That was - almost - a home run. Went fine and downloaded packages. I'm a
complete newcomer to Linux/Ubuntu, so thats amazing. Unfortunately it went
wrong when I wrote 'sudo dpkg --clear-avail'. It said (in Danish):
'conflicting actions -l (--list) and -c -- actions)' I was suggested
'dselect' or 'aptitude', but neither worked. maybe I write commands wrong,
but tried both with '-' and without '-'. It also said that choises marked
[*] would give too many out-data and it should be led through 'less' or
'more', but I don't know what that means or how to do.

sincerely

John

2011/9/22 actionparsnip <email address hidden>

> Your question #171991 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/171991
>
> Status: Open => Answered
>
> actionparsnip proposed the following answer:
> sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
> sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
> sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
> sudo rm -rf /var/lib/dpkg/updates/*
> sudo rm -rf /var/lib/apt/lists
> sudo mkdir /var/lib/apt/lists
> sudo mkdir /var/lib/apt/lists/partial
> sudo apt-get clean
> sudo apt-get update
> sudo dpkg --clear-avail
> sudo dpkg --configure -a
> sudo apt-get install -f
> sudo apt-get update
> sudo apt-get dist-upgrade
>
>
> May help
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/171991/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/171991
>
> You received this question notification because you asked the question.
>

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Ok just skip that line and go to the next :)

Revision history for this message
John Gade (gade-john) said :
#4

Hey, i tried the Update pull-down menu, and it worked. Just restarted the
computer and apparently it solved the problem. Should I repeat the other
lines?

2011/9/22 actionparsnip <email address hidden>

> Your question #171991 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/171991
>
> Status: Open => Answered
>
> actionparsnip proposed the following answer:
> Ok just skip that line and go to the next :)
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/171991/+confirm?answer_id=2
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/171991
>
> You received this question notification because you asked the question.
>

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

No need if the issue is solved :)

Revision history for this message
John Gade (gade-john) said :
#6

Thanks a lot. I report to the community.

2011/9/22 actionparsnip <email address hidden>

> Your question #171991 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/171991
>
> Status: Open => Answered
>
> actionparsnip proposed the following answer:
> No need if the issue is solved :)
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/171991/+confirm?answer_id=4
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/171991
>
> You received this question notification because you asked the question.
>

Revision history for this message
John Gade (gade-john) said :
#7

The problems seems solved. downloaded packages. Stopped at the line: 'sudo dpkg --clear-avail', but then the update manager worked from the pull down menu.