Find the answer to your Linux question:
Results 1 to 10 of 10
Well it seems I did something stupid , and can't fix it, when I try to add programs on ubuntu using the add remove programs thing I get the following ...
  1. #1
    Just Joined!
    Join Date
    May 2009
    Posts
    11

    [SOLVED] Software won't install

    Well it seems I did something stupid , and can't fix it, when I try to add programs on ubuntu using the add remove programs thing I get the following error

    "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'."

    How do I fix this?

    Sorry if this is a really stupid question , but I have only been running ubuntu for a week now

  2. #2
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    Did you run the suggested commands? That would be the first step. To do so you need to open a terminal (I believe Ubuntu has it under Applications->Accesories). You can just copy and paste this.
    Code:
    sudo apt-get update && sudo apt-get install -f
    Post any error messages.

  3. #3
    Just Joined!
    Join Date
    May 2009
    Posts
    11
    Well I did that and this is what I got
    For "sudo apt-get update"
    I got "E: Type 'ntu/' is not known on line 45 in source list /etc/apt/sources.list"

    For "sudo apt-get install -f"
    I got
    "E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
    E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?"

  4. #4
    Linux User saivin's Avatar
    Join Date
    Dec 2008
    Location
    Bengaluru, India
    Posts
    305
    Seems wrong (typo) entry in sources.list file. Can you open the /etc/apt/sources.list file and copy and post the contents here.
    A candle looses nothing by lighting other candles. - Khalil Zibran.
    Registered Linux User #490076

  5. #5
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    It looks like there is an error in your sources.list. Please post the contents of /etc/apt/sources.list. (This is a text file, so you can open it in any text editor. Ubuntu has gedit installed by default.)

    For the second error, it means some other package manager is using it. Make sure you don't have add/remove programs, synaptic, or the update manager running.

    https://help.ubuntu.com/community/Repositories/Ubuntu

  6. #6
    Just Joined!
    Join Date
    May 2009
    Posts
    11
    I can't post it ,cause it contains website URLs ,so I have attached it to this message ,and changed it from "sources.list" to "sources.txt"
    Attached Files Attached Files

  7. #7
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,298
    The last line in your file should be like this

    Code:
    deb http://archive.ubuntu.com/ubuntu/ jaunty-security multiverse
    Edit this file as root. To do so follow these steps
    Press Alt + F2
    Type gksu "gedit /etc/apt/sources.list" (with out the quotes) and press enter
    Make the change and save the file.

    Open a terminal and run the following command.
    "sudo apt-get update" (again without the quotes).
    If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)


    My new blog. It's probably not as good as I think it is.

  8. #8
    Just Joined!
    Join Date
    May 2009
    Posts
    11
    Well , when I come to the save part it says :

    "You do not have the permissions necessary to save the file. Please check that you typed the location correctly and try again."

  9. #9
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,298
    Quote Originally Posted by gertmoolman View Post
    Well , when I come to the save part it says :

    "You do not have the permissions necessary to save the file. Please check that you typed the location correctly and try again."
    oops a small typo on my part

    Press Alt + F2 and type "gksu gedit /etc/apt/sources.list" without the quotes
    If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)


    My new blog. It's probably not as good as I think it is.

  10. #10
    Just Joined!
    Join Date
    May 2009
    Posts
    11
    Thanks , everything is working again!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...