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!!!
Announcement
Collapse
No announcement yet.
The APT Database could not be opened!
Collapse
This topic is closed.
X
X
-
Re: The APT Database could not be opened!
Did you try
Code:sudo apt-get update
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
Code:kdesu kate /etc/apt/sources.list
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
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
- Top
- Bottom
Comment