LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   apt-get problems (https://www.linuxquestions.org/questions/linux-software-2/apt-get-problems-247402/)

PDD 10-26-2004 04:55 AM

apt-get problems
 
Hi Guys,

n00b here and having problems with apt-get. I am running RH9 and I am using apt-get ( I thought it was only for Debian but I got the binaries and installed it, seemed to go on just fine) Then I went to use apt-get (a package that I am truely impressed with just a few simiple commands and your system is up to date or new packages installed or removed - brilliant), first of all I decided to update KDE and so I went:

apt-get install KDE

all went fine, lots of lines went whizzing past on my screen as it downloaded each package then with about 10mins to go it said the connection to the server was lost (ayo.freshrpms.net) and it just died. Now where does that leave my update of KDE is it Kiboshed? Do I have to do re-install, can I contintue updating KDE by simply typing in the same command - as in will it pick up where it left off? If I try any other packages for apt-get the following error:

apt-get install qt
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package qt

Dave

PDD 10-26-2004 06:44 AM

Hi Guys,

And as if that didnt cook your noodle, I think apt-get may be buggered. I tried the following:

@apt-get check
error: cannot get exclusive lock on /var/lib/rpm/Packages
error: cannot open Packages index using db3 - Operation not permitted (1)
error: cannot open Packages database in
E: could not open RPM database

Now given that it was file permissions I did a reboot hoping it was temporary lock that had been put on them but alas no. What do I do now?

Dave

dc2447 10-26-2004 06:47 AM

Quote:

Originally posted by PDD
Hi Guys,

And as if that didnt cook your noodle, I think apt-get may be buggered. I tried the following:

@apt-get check
error: cannot get exclusive lock on /var/lib/rpm/Packages
error: cannot open Packages index using db3 - Operation not permitted (1)
error: cannot open Packages database in
E: could not open RPM database

Now given that it was file permissions I did a reboot hoping it was temporary lock that had been put on them but alas no. What do I do now?

Dave

are you root?

PDD 10-26-2004 07:02 AM

Apt-Get Problems
 
yep logged in as root and got:

Which solved the file permission problems (Duh Dave) but still getting a cant find pacakge error and when I go to do an upgrade it stalls when It cant find a key. Also when I go to do an autoclean it shows the following:L

apt-get autoclean
E: Could not get lock /var/cache/apt/archives/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the download directory

Dave


All times are GMT -5. The time now is 03:54 PM.