Announcement

Collapse
No announcement yet.

The APT Database could not be opened!

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    The APT Database could not be opened!

    When I try to run adept this is the message I got: "The APT Database could not be opened! This may be caused by incorrect APT configuration or some similar problem. Try running apt-setup and apt-get update in terminal and see if it helps to resolve the problem." I'm new to linux and I admit it was my fault 'cause I was trying to add programs to my repos. Please help!!!

    #2
    Re: The APT Database could not be opened!

    Did you try
    Code:
    sudo apt-get update
    apt-setup isn't really for Ubuntu it seems. Reading on it it's just a graphical way to edit your /etc/apt/sources.list file

    What could do is make sure adept, kmenu and everything else involved with installing  programs is closed.

    Backup the original file first.  Open the Konsole (Kmenu>System>Konsole (Terminal program) then type in:
    Code:
    sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
    enter your password. Then

    Code:
    kdesu kate /etc/apt/sources.list
    You'll get a bunch of junk about how it's not working (ignore it when it does this), then it will ask for your password. After you enter your pasword your file will open.

    This is the content of my sources.list file - if you want you can just delete what you have and paste mine in.
    Code:
    ## Automatix sources.list
    ## This is automatically generated by Automatix
    
    
    ####################################
    ### Official Ubuntu Repositories ###
    ####################################
    
    # Dapper Final Release Repository
    deb [url]http://archive.ubuntu.com/ubuntu[/url] dapper main
    deb-src [url]http://archive.ubuntu.com/ubuntu[/url] dapper main
    
    deb [url]http://archive.ubuntu.com/ubuntu[/url] dapper restricted
    deb-src [url]http://archive.ubuntu.com/ubuntu[/url] dapper restricted
    
    deb [url]http://archive.ubuntu.com/ubuntu[/url] dapper universe
    deb-src [url]http://archive.ubuntu.com/ubuntu[/url] dapper universe
    
    deb [url]http://archive.ubuntu.com/ubuntu[/url] dapper multiverse
    deb-src [url]http://archive.ubuntu.com/ubuntu[/url] dapper multiverse
    
    # Dapper Security Updates
    deb [url]http://archive.ubuntu.com/ubuntu[/url] dapper-security main
    deb-src [url]http://archive.ubuntu.com/ubuntu[/url] dapper-security main
    
    deb [url]http://archive.ubuntu.com/ubuntu[/url] dapper-security restricted
    deb-src [url]http://archive.ubuntu.com/ubuntu[/url] dapper-security restricted
    
    deb [url]http://archive.ubuntu.com/ubuntu[/url] dapper-security universe
    deb-src [url]http://archive.ubuntu.com/ubuntu[/url] dapper-security universe
    
    deb [url]http://archive.ubuntu.com/ubuntu[/url] dapper-security multiverse
    deb-src [url]http://archive.ubuntu.com/ubuntu[/url] dapper-security multiverse
    
    # Dapper Bugfix Updates
    deb [url]http://archive.ubuntu.com/ubuntu[/url] dapper-updates main
    deb-src [url]http://archive.ubuntu.com/ubuntu[/url] dapper-updates main
    
    deb [url]http://archive.ubuntu.com/ubuntu[/url] dapper-updates restricted
    deb-src [url]http://archive.ubuntu.com/ubuntu[/url] dapper-updates restricted
    
    deb [url]http://archive.ubuntu.com/ubuntu[/url] dapper-updates universe
    deb-src [url]http://archive.ubuntu.com/ubuntu[/url] dapper-updates universe
    
    deb [url]http://archive.ubuntu.com/ubuntu[/url] dapper-updates multiverse
    deb-src [url]http://archive.ubuntu.com/ubuntu[/url] dapper-updates multiverse
    
    # Dapper Backports (new software versions, provided by the Ubuntu Backports Project)
    deb [url]http://archive.ubuntu.com/ubuntu[/url] dapper-backports main
    deb-src [url]http://archive.ubuntu.com/ubuntu[/url] dapper-backports main
    
    deb [url]http://archive.ubuntu.com/ubuntu[/url] dapper-backports restricted
    deb-src [url]http://archive.ubuntu.com/ubuntu[/url] dapper-backports restricted
    
    deb [url]http://archive.ubuntu.com/ubuntu[/url] dapper-backports universe
    deb-src [url]http://archive.ubuntu.com/ubuntu[/url] dapper-backports universe
    
    deb [url]http://archive.ubuntu.com/ubuntu[/url] dapper-backports multiverse
    deb-src [url]http://archive.ubuntu.com/ubuntu[/url] dapper-backports multiverse
    
    deb [url]http://archive.canonical.com/ubuntu[/url] dapper-commercial main
    
    
    ##############################
    ### Automatix Repositories ###
    ##############################
    
    #deb [url]http://www.getautomatix.com/apt[/url] dapper main
    
    ## created by automatixrepo3
    Click the save button and exit kate.

    I can't remember if this is one of those reboot things or not, so I'd suggest rebooting here. Then reopen a Konsole and enter
    Code:
    apt-get update
    Hope this helps - it can't hurt. :-) If worse comes to worse just  cp the sources.list_backup back to sources.list






    Comment

    Working...
    X