help me with the add/remove

Asked by libni

Failed to check for installed and available applications

This is a major failure of your software management system. Please check for broken packages with synaptic, check the file permissions and correctness of the file '/etc/apt/sources.list' and reload the software information with: 'sudo apt-get update' and 'sudo apt-get install -f'.

this is wat it says ...i kinda messed around with my comp and im afraid i messed up the whole thing plz reply ASAP!!!

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was reopened

Revision history for this message
zvacet (ivicakolic) said :
#1

System>admin>software source>check all (except source)under Ubuntu software and first two under updates tab.Reload.In synaptic under edit tab>fixbroken packages and if you see any click apply.You can also run in terminal

sudo apt-get update && sudo apt-get upgrade

and after that

sudo apt-get -f install

If you get any problems then in terminal

cat /etc/apt/sources.list

and post it here.

Revision history for this message
Antonio Sánchez (antoniosanchez) said :
#2

Paste here content of /etc/apt/sources.list typing 'cat /etc/apt/sources.list' in a terminal.

Then you can try 'sudo apt-get install -f' in a terminal.

Let us know.

Revision history for this message
libni (dreammaker-libni) said :
#3

E: Type '“deb-src' is not known on line 49 in source list /etc/apt/sources.list
E: The list of sources could not be read.

this is wat comes up in the terminal :,C

Revision history for this message
libni (dreammaker-libni) said :
#4

Antonio i tried urs and this is wat came up bash: /etc/apt/sources.list: Permission denied

Revision history for this message
Tom (tom6) said :
#5

Hi :)

Does it let you open Synaptic Package Manager?
https://help.ubuntu.com/community/SynapticHowto

Good luck and regards from
Tom :)

Revision history for this message
libni (dreammaker-libni) said :
#6

it didnt work it dosent want to open :C

Revision history for this message
libni (dreammaker-libni) said :
#7

it didnt work it dosent want to open :C

Revision history for this message
Daniel Hollocher (chogydan) said :
#8

can you paste the result of this: ls /etc/apt/sources.list

Revision history for this message
libni (dreammaker-libni) said :
#9

i put it to a terminal presed enter and nothing happend

Revision history for this message
Daniel Hollocher (chogydan) said :
#10

how about:
ls -al /etc/apt

also, if you can say how you messed up your computer, that would be very helpful. It's bad that sources.list didn't show up. But its hard to judge without knowing what you did to your computer. (even if you aren't sure, can you list other problems you are having?)

You should also try going to System > Administration > Software Sources and enabling all your sources

Revision history for this message
libni (dreammaker-libni) said :
#11

OK well i was trying to make my Linux look like the mac leopard and i used this website http://rockmanx.wordpress.com/2008/06/02/make-your-linux-ubuntu-look-like-a-mac-hardy-heron/ so umm i tried and i started moving and downloading and putting stuff in the terminal then like after 2 hours i gave up and changed everything back but then i went to add and remove programs and it didn't work ........ and if i go to software sources and change something this comes up: Could not download all repository indexes

The repository may no longer be available or could not be contacted because of network problems. If available an older version of the failed index will be used. Otherwise the repository will be ignored. Check your network connection and ensure the repository address in the preferences is correct.

hopefully this helps plz help me :C

Revision history for this message
Daniel Hollocher (chogydan) said :
#12

well that doesn't look too bad.

Try going to System > Administration > Software Sources
under Ubuntu Software, make sure everything but Source Code is checked.
under Third-Party Software, make sure everything is unchecked.

Then try running the previous commands, see if they work.

Revision history for this message
libni (dreammaker-libni) said :
#13

Could not download all repository indexes

The repository may no longer be available or could not be contacted because of network problems. If available an older version of the failed index will be used. Otherwise the repository will be ignored. Check your network connection and ensure the repository address in the preferences is correct.

i did wat you said but wen i put reload that came out then this came out.... E: Type '“deb-src' is not known on line 49 in source list /etc/apt/sources.list
E: Unable to lock the list directory

Revision history for this message
libni (dreammaker-libni) said :
#14

E: Type '“deb-src' is not known on line 49 in source list /etc/apt/sources.list
E: The list of sources could not be read.
Go to the repository dialog to correct the problem.
E: _cache->open() failed, please report.
..... then this came up

Revision history for this message
zvacet (ivicakolic) said :
#15

What is output of

cat /etc/apt/sources.list

Other way to copy your source list and put it here is

gedit /etc/apt/sources.list

and under edit tab>select all>copy

Copy it here.

Revision history for this message
libni (dreammaker-libni) said :
#16

#
# deb cdrom:[Xubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/ gutsy main restricted

# deb cdrom:[Xubuntu 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://us.archive.ubuntu.com/ubuntu/ hardy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ hardy-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://us.archive.ubuntu.com/ubuntu/ hardy universe
deb http://us.archive.ubuntu.com/ubuntu/ hardy-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://us.archive.ubuntu.com/ubuntu/ hardy multiverse
deb http://us.archive.ubuntu.com/ubuntu/ hardy-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://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse
# deb-src http://us.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-src http://archive.canonical.com/ubuntu gutsy partner

deb http://security.ubuntu.com/ubuntu hardy-security main restricted
deb http://security.ubuntu.com/ubuntu hardy-security universe
deb http://security.ubuntu.com/ubuntu hardy-security multiverse
“deb-src http://ppa.launchpad.net/awn-testing/ubuntu hardy main”
deb-src http://us.archive.ubuntu.com/ubuntu/

Revision history for this message
Daniel Hollocher (chogydan) said :
#17

The second the last line is the problem:
“deb-src http://ppa.launchpad.net/awn-testing/ubuntu hardy main”

If you wanted to continue with the directions, you can just remove the quotes. If you want to continue undoing the changes you made, simply remove the whole line.

To make the changes, use: gksu gedit /etc/apt/sources.list

Revision history for this message
libni (dreammaker-libni) said :
#18

i deleted the line that u said and it still dosent work

Revision history for this message
zvacet (ivicakolic) said :
#19

sudo apt-get update && sudo apt-get upgrade

Let us know if it help or not.

Revision history for this message
zvacet (ivicakolic) said :
#20

Sorry for overlook.Let your two last lines look like this

deb-src http://ppa.launchpad.net/awn-testing/ubuntu hardy main
#deb-src http://us.archive.ubuntu.com/ubuntu/

Then

sudo apt-get update && sudo apt-get upgrade

Revision history for this message
libni (dreammaker-libni) said :
#21

E: Malformed line 50 in source list /etc/apt/sources.list (dist)
....this came up

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#22

Open a Terminal from the menu Applications → Accessories → Terminal and type:
(if the system ask you a password give your user password, you will not see nothing when you type it, then press enter)

sudo gedit /etc/apt/sources.list

Modify the row

“deb-src http://ppa.launchpad.net/awn-testing/ubuntu hardy main”
to
deb-src http://ppa.launchpad.net/awn-testing/ubuntu hardy main

Save and exit and retry to update your system.

Hope this helps

Revision history for this message
libni (dreammaker-libni) said :
#23

on the add/remove thing there is a little bubble that comes up and it said to fix the problem open a terminal and put apt-get ....i did and this came up i eant to know wat do i do .

.xubuntu@ubuntu:~$ apt-get
apt 0.7.9ubuntu17.2 for i386 compiled on Apr 17 2009 16:29:24
Usage: apt-get [options] command
       apt-get [options] install|remove pkg1 [pkg2 ...]
       apt-get [options] source pkg1 [pkg2 ...]

apt-get is a simple command line interface for downloading and
installing packages. The most frequently used commands are update
and install.

Commands:
   update - Retrieve new lists of packages
   upgrade - Perform an upgrade
   install - Install new packages (pkg is libc6 not libc6.deb)
   remove - Remove packages
   autoremove - Remove all automatic unused packages
   purge - Remove and purge packages
   source - Download source archives
   build-dep - Configure build-dependencies for source packages
   dist-upgrade - Distribution upgrade, see apt-get(8)
   dselect-upgrade - Follow dselect selections
   clean - Erase downloaded archive files
   autoclean - Erase old downloaded archive files
   check - Verify that there are no broken dependencies

Options:
  -h This help text.
  -q Loggable output - no progress indicator
  -qq No output except for errors
  -d Download only - do NOT install or unpack archives
  -s No-act. Perform ordering simulation
  -y Assume Yes to all queries and do not prompt
  -f Attempt to correct a system with broken dependencies in place
  -m Attempt to continue if archives are unlocatable
  -u Show a list of upgraded packages as well
  -b Build the source package after fetching it
  -V Show verbose version numbers
  -c=? Read this configuration file
  -o=? Set an arbitrary configuration option, eg -o dir::cache=/tmp
See the apt-get(8), sources.list(5) and apt.conf(5) manual
pages for more information and options.
                       This APT has Super Cow Powers.

Revision history for this message
Daniel Hollocher (chogydan) said :
#24

can you please post all the text of your errors?

Revision history for this message
zvacet (ivicakolic) said :
#25

Did you try with this command

sudo apt-get -f install

Revision history for this message
libni (dreammaker-libni) said :
#26

E: Malformed line 50 in source list /etc/apt/sources.list (dist)
E: The list of sources could not be read.

i still need help

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#27

There is something wrong at line 50 of your /etc/apt/sources.list file

So... please

Open a Terminal from the menu Applications → Accessories → Terminal and type:

sudo gedit /etc/apt/sources.list

give your user password when requested, you don't see nothing when you type it, then press enter.

Copy and paste the sources.list file here...

Thank you

Revision history for this message
libni (dreammaker-libni) said :
#28

#
# deb cdrom:[Xubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/ gutsy main restricted

# deb cdrom:[Xubuntu 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://us.archive.ubuntu.com/ubuntu/ hardy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ hardy-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://us.archive.ubuntu.com/ubuntu/ hardy universe
deb http://us.archive.ubuntu.com/ubuntu/ hardy-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://us.archive.ubuntu.com/ubuntu/ hardy multiverse
deb http://us.archive.ubuntu.com/ubuntu/ hardy-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://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse
# deb-src http://us.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-src http://archive.canonical.com/ubuntu gutsy partner

deb http://security.ubuntu.com/ubuntu hardy-security main restricted
deb http://security.ubuntu.com/ubuntu hardy-security universe
deb http://security.ubuntu.com/ubuntu hardy-security multiverse
deb-src http://ppa.launchpad.net/awn-testing/ubuntu hardy main
deb-src http://us.archive.ubuntu.com/ubuntu/

plz im begging !!! hopefully ur the one that can finnaly give me an answer :C

Revision history for this message
zvacet (ivicakolic) said :
#29

Edit your source list typing in terminal

gksudo gedit /etc/apt/sources.list

delete last line in your source list and that is

deb-src http://us.archive.ubuntu.com/ubuntu/

Save and close file.

sudo apt-get update && sudo apt-get upgrade

Sorry for late response.

Revision history for this message
libni (dreammaker-libni) said :
#30

omg i totallly luv u!!!
u fixed it!!!! after like a week or two !!!!!!! yai!!!!! thanx a million!!!!!!! r u like specialized in computers linux???? xoxoxoxo :D

Revision history for this message
libni (dreammaker-libni) said :
#31

grrr... another pronblem .....the update manager is not working....this comes up.... W: GPG error: http://ppa.launchpad.net hardy Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7D2C7A23BF810CD5

Revision history for this message
zvacet (ivicakolic) said :
#32

Type in terminal (one line at the time and hit enter after each one)

gpg --keyserver hkp://subkeys.pgp.net --recv-keys 7D2C7A23BF810CD5

gpg --export --armor 7D2C7A23BF810CD5 | sudo apt-key add -

Revision history for this message
libni (dreammaker-libni) said :
#33

ummm nop i didnt work

Revision history for this message
libni (dreammaker-libni) said :
#34

nop

Revision history for this message
zvacet (ivicakolic) said :
#35

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com BF810CD5

Revision history for this message
libni (dreammaker-libni) said :
#36

i put it and then i went to the update manager and i put reload it looks like it wants to read 33 updates ut then it just says up to date

Revision history for this message
zvacet (ivicakolic) said :
#37

In terminal

sudo apt-get update && sudo apt-get upgrade

Revision history for this message
libni (dreammaker-libni) said :
#38

nop it didnt work...do u think i can fix it with the synaptic package manager??

Revision history for this message
zvacet (ivicakolic) said :
#39

In synaptic>refresh and after that mark all upgrades.

Revision history for this message
libni (dreammaker-libni) said :
#40

nope still nothing

Revision history for this message
zvacet (ivicakolic) said :
#41
Revision history for this message
libni (dreammaker-libni) said :
#42

i dont gwt wat it its tryng to say

Revision history for this message
zvacet (ivicakolic) said :
#43

Run sudo apt-get update && sudo apt-get upgrade

Post output here.Maybe with that info somebody can help you.

Can you help with this problem?

Provide an answer of your own, or ask libni for more information if necessary.

To post a message you must log in.