add-remove updates won't load

Asked by renny porter

When I press the add remove applications an error message
comes up in a box saying

                            FAILED TO CHECK FOR INSTALLED & AVAILABLE APPLICATIONS

                       check for broken files with synaptic. check file
                       permissions & correctness of the file '/etc/apt/sources.lst
                       and reload the file with 'sudo apt-get update'
                       and 'sudo apt-get install -f

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Olivier
Solved:
Last query:
Last reply:
Revision history for this message
Olivier (olivier-lacroix) said :
#1

Hi !

do as advised : open a terminal and enter the following commands :

sudo apt-get update
sudo apt-get -f install

report here any error you may get

Revision history for this message
renny porter (renny-eastlink) said :
#2

it said:

   E: malformed line 56 in source list /etc/apt/sources.list (dist parse)

Revision history for this message
Olivier (olivier-lacroix) said :
#3

OK. enter in the terminal the following command

cat /etc/apt/sources.list

post here the result

Revision history for this message
renny porter (renny-eastlink) said :
#4

deb cdrom:[Ubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/ gutsy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://ca.archive.ubuntu.com/ubuntu/ gutsy main restricted
deb-src http://ca.archive.ubuntu.com/ubuntu/ gutsy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ca.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted
deb-src http://ca.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://ca.archive.ubuntu.com/ubuntu/ gutsy universe
deb-src http://ca.archive.ubuntu.com/ubuntu/ gutsy universe
deb http://ca.archive.ubuntu.com/ubuntu/ gutsy-updates universe
deb-src http://ca.archive.ubuntu.com/ubuntu/ gutsy-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://ca.archive.ubuntu.com/ubuntu/ gutsy multiverse
deb-src http://ca.archive.ubuntu.com/ubuntu/ gutsy multiverse
deb http://ca.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse
deb-src http://ca.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://ca.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse
# deb-src http://ca.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository. This software is not part of Ubuntu, but is
## offered by Canonical and the respective vendors as a service to Ubuntu
## users.
# deb http://archive.canonical.com/ubuntu gutsy partner
# deb-src http://archive.canonical.com/ubuntu gutsy partner

deb http://security.ubuntu.com/ubuntu gutsy-security main restricted
deb-src http://security.ubuntu.com/ubuntu gutsy-security main restricted
deb http://security.ubuntu.com/ubuntu gutsy-security universe
deb-src http://security.ubuntu.com/ubuntu gutsy-security universe
deb http://security.ubuntu.com/ubuntu gutsy-security multiverse
deb-src http://security.ubuntu.com/ubuntu gutsy-security multiverse
deb http://ftp.osuosl.org/pub/pculture.org/miro/linux/repositories/ubuntu gutsy

Revision history for this message
Best Olivier (olivier-lacroix) said :
#5

You need to add a / at the end of the last line. edit this file, entering for instance in the terminal

sudo gedit /etc/apt/sources.list

add the / , save, close, and try to run "sudo apt-get update" again. If you have no error, you are saved :-)

Revision history for this message
renny porter (renny-eastlink) said :
#6

E: Could not get lock /var/lib/apt/lists/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the list directory

this is what came back when I added a /

Revision history for this message
renny porter (renny-eastlink) said :
#7

In spite of the error message I just tried the add-remove programs
and --it worked!

 thanks man. If you live anywhere near Halifax, Nova scotia I'll
be over to wash your car tomorrow.

Renny

Revision history for this message
rob-info (rob-info) said :
#8

I had the same problems after installing the applications and my laptop battery power was 0%......
This restores my source list too. Fantastic!!
Thnx.

Revision history for this message
efly (borisajovicic) said :
#9

I have same problems. PLEAS HELP

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://us.archive.ubuntu.com/ubuntu/ hardy main universe restricted multiverse

## Major bug fix updates produced after the final release of the
## distribution.

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb-src http://rs.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository. This software is not part of Ubuntu, but is
## offered by Canonical and the respective vendors as a service to Ubuntu
## users.
deb http://archive.canonical.com/ubuntu hardy partner
deb-src http://archive.canonical.com/ubuntu hardy partner

deb http://us.archive.ubuntu.com/ubuntu/ hardy-security main universe restricted multiverse
buntu.com/ubuntu/ hardy-security multiverse
deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates universe main multiverse restricted
deb cdrom:[Ubuntu 8.04 _Hardy Heron_ - Release i386 (20080423)]/ hardy main restricted

Revision history for this message
efly (borisajovicic) said :
#10

No problem

deb http://us.archive.ubuntu.com/ubuntu/ hardy-security main universe restricted multiverse
buntu.com/ubuntu/ hardy-security multiverse

deb http://us.archive.ubuntu.com/ubuntu/ hardy-security main universe restricted multiverse
deb http://us.archive.ubuntu.com/ubuntu/ hardy-security multiverse

TNX

Revision history for this message
Olivier (olivier-lacroix) said :
#11

delete the "buntu.com/ubuntu/ hardy-security multiverse" line and replace it with

deb http://us.archive.ubuntu.com/ubuntu/ hardy-security multiverse