LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 02-28-2006, 11:04 AM   #1
Optiker
Member
 
Registered: Nov 2005
Distribution: Mint 14 Nadia
Posts: 189

Rep: Reputation: 21
Adept messed up


Some time ago, when I was having trouble with my newly installed Kubuntu Breezy 5.10, somewhere in the process of trying to get it right with the help of folks on various forums, something went wrong with Adept. I got busy with other things, so wasn't able to pursue it, so left it. Now I am needing to install new packages, and need to fix the Adept problem.

When I try to run Adept, I get the error message dialog box title "Could not open Cache - Adept" with the error message...
---------------
The APT Database could not be opened! This may be caused by incorrect APT configuration or something similar. Try running apt-setup and apt-get update in terminal and see if it helps to resolve the problem.
---------------

When I ran apt-setup and selected /http as the source, it failed and I got the following message...
┌───────────────────────────┤ Apt configuration ├───────────────────────────┐
│ │
│ Failed to access the Ubuntu archive │
│ │
│ While trying to access the Ubuntu archive using the information you │
│ provided, the Ubuntu package management tool, apt, returned the │
│ following error. The questions will be asked again. │
│ │
│ 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?

Other than trying to run Adept and the console commands that gave these results, as far as I know, I wasn't using anything else that might be using the database. When I tried again and selected ftp as the source, it seemed to work and I got the following...
----------------------
Testing apt sources...
Get:1 http://us.archive.ubuntu.com breezy Release.gpg [189B]
Hit http://us.archive.ubuntu.com breezy Release
Hit http://us.archive.ubuntu.com breezy/main Packages
Hit http://us.archive.ubuntu.com breezy/restricted Packages
Fetched 1B in 0s (1B/s)

Testing apt sources...
Hit ftp://us.archive.ubuntu.com breezy Release.gpg
Hit ftp://us.archive.ubuntu.com breezy Release
Hit ftp://us.archive.ubuntu.com breezy/main Packages
Hit ftp://us.archive.ubuntu.com breezy/restricted Packages
Reading package lists... Done
Hit ftp://us.archive.ubuntu.com breezy Release.gpg
Hit ftp://us.archive.ubuntu.com breezy Release
Hit ftp://us.archive.ubuntu.com breezy/main Sources
Hit ftp://us.archive.ubuntu.com breezy/restricted Sources
Reading package lists... Done

release v=5.10,o=Ubuntu,a=breezy,l=Ubuntu,c=restricted
release v=5.10,o=Ubuntu,a=breezy,l=Ubuntu,c=main
optiker@wd45992:~$
-------------------------

However, when I then tried to run Adept again, I got the same error message about not opening the cache as I did before I ran apt-setup.

When I tried to run apt-get update as isuggested in the original error message, I got the same cache error title with the following error message...
--------------------
The APT Database could not be opened! This may be caused by incorrect APT configuration or something similar. Try running apt-setup and apt-get update in terminal and see if it helps to resolve the problem.

E: Type 'http://packages.debian.org/stable/libs' is not known on line 2 in source list /etc/apt/sources.list
--------------------

Here's my sources list...
===============
deb cdrom:[Kubuntu 5.10 _Breezy Badger_ - Release i386 (20051012)]/ breezy main restricted
http://packages.debian.org/stable/libs


deb http://us.archive.ubuntu.com/ubuntu breezy main restricted
deb-src http://us.archive.ubuntu.com/ubuntu breezy main restricted

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

## Uncomment the following two lines to add software from the 'universe'
## repository.
## 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 breezy universe
deb-src http://us.archive.ubuntu.com/ubuntu breezy universe

## 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 breezy-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu breezy-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu breezy-security main restricted
deb-src http://security.ubuntu.com/ubuntu breezy-security main restricted

deb http://security.ubuntu.com/ubuntu breezy-security universe
deb-src http://security.ubuntu.com/ubuntu breezy-security universe


deb http://us.archive.ubuntu.com/ubuntu/ breezy main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ breezy main restricted

deb http://us.archive.ubuntu.com/ubuntu/ breezy main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ breezy main restricted

deb http://us.archive.ubuntu.com/ubuntu/ breezy main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ breezy main restricted

deb ftp://us.archive.ubuntu.com/ubuntu/ breezy main restricted
deb-src ftp://us.archive.ubuntu.com/ubuntu/ breezy main restricted

deb ftp://us.archive.ubuntu.com/ubuntu/ breezy main restricted
deb-src ftp://us.archive.ubuntu.com/ubuntu/ breezy main restricted
========================

I'm not very experienced with Linux, and don't know what to try next other than to clear the installation and start with a fresh install. Does anybody have any suggestions that I might try to avoid that? There were a variety of problems (for a newbie) with the first install that I don't want to go through again, but will if there's no other solution. I'm not real experienced, so any suggestions need to be pretty explicit, step-by-step for me to follow.

If I do have to clear it and start fresh, do I just delete all files on the partition and invoke a new installation from the CD? I can do that from Windows if I need to, from a Knoppix live CD, or from Kubuntu itself?

Thanks!
Optiker
 
Old 02-28-2006, 01:45 PM   #2
alaithea
LQ Newbie
 
Registered: Jun 2005
Posts: 7

Rep: Reputation: 0
Just comment out the second line of your sources.list file. And try apt-get update again.
 
Old 02-28-2006, 01:49 PM   #3
Optiker
Member
 
Registered: Nov 2005
Distribution: Mint 14 Nadia
Posts: 189

Original Poster
Rep: Reputation: 21
al...OK - will try it.

thanks!
Optiker
 
Old 02-28-2006, 04:12 PM   #4
Optiker
Member
 
Registered: Nov 2005
Distribution: Mint 14 Nadia
Posts: 189

Original Poster
Rep: Reputation: 21
al...thanks! It worked...looks like I'm back in business.

Optiker
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't install via adept/apt-get, weird dependency error... Letherian Linux - Software 0 02-26-2006 04:12 PM
I Messed Up! TerabyteUK Linux - Newbie 16 01-25-2006 05:48 PM
Adept install problem (KUbuntu) saf4 Ubuntu 2 11-04-2005 01:01 PM
messed up X crispy_420 Linux - Newbie 1 09-09-2005 01:23 AM
really messed up X JunLitsu Linux - Software 0 05-06-2003 01:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 05:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration