LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-27-2004, 02:43 AM   #1
davidas
Member
 
Registered: Mar 2004
Distribution: Debian 'Sarge'
Posts: 168

Rep: Reputation: 30
Need help with getting AptRPM (apt for rpm) working...


I have the following error when I did a apt-get:

[root@rhlinux i386]# apt-get update
E: Could not open lock file /var/lib/apt/lists/lock - open (2 No such file or directory)
E: Unable to lock the list directory

Moveover, there isn't any apt directory under /etc. More information:

[root@rhlinux i386]# rpm -qpl apt-0.5.15cnc6-1.i386.rpm
/usr/doc/apt-0.5.15cnc6/ABOUT-NLS
/usr/doc/apt-0.5.15cnc6/AUTHORS
/usr/doc/apt-0.5.15cnc6/COPYING
/usr/doc/apt-0.5.15cnc6/COPYING.GPL
/usr/doc/apt-0.5.15cnc6/TODO
/usr/local/bin/apt-cache
/usr/local/bin/apt-cdrom
/usr/local/bin/apt-config
/usr/local/bin/apt-get
/usr/local/bin/apt-shell
/usr/local/bin/genbasedir
/usr/local/bin/genpkglist
/usr/local/bin/gensrclist
/usr/local/include/apt-pkg/acquire-item.h
/usr/local/include/apt-pkg/acquire-method.h
/usr/local/include/apt-pkg/acquire-worker.h
/usr/local/include/apt-pkg/acquire.h
/usr/local/include/apt-pkg/algorithms.h
/usr/local/include/apt-pkg/cachefile.h
/usr/local/include/apt-pkg/cacheiterators.h
/usr/local/include/apt-pkg/cdromutl.h
/usr/local/include/apt-pkg/clean.h
/usr/local/include/apt-pkg/cmndline.h
/usr/local/include/apt-pkg/configuration.h
/usr/local/include/apt-pkg/crc-16.h
/usr/local/include/apt-pkg/depcache.h
/usr/local/include/apt-pkg/error.h
/usr/local/include/apt-pkg/fileutl.h
/usr/local/include/apt-pkg/hashes.h
/usr/local/include/apt-pkg/indexfile.h
/usr/local/include/apt-pkg/init.h
/usr/local/include/apt-pkg/luaiface.h
/usr/local/include/apt-pkg/md5.h
/usr/local/include/apt-pkg/mmap.h
/usr/local/include/apt-pkg/orderlist.h
/usr/local/include/apt-pkg/packagemanager.h
/usr/local/include/apt-pkg/pkgcache.h
/usr/local/include/apt-pkg/pkgcachegen.h
/usr/local/include/apt-pkg/pkgrecords.h
/usr/local/include/apt-pkg/pkgsystem.h
/usr/local/include/apt-pkg/policy.h
/usr/local/include/apt-pkg/progress.h
/usr/local/include/apt-pkg/repository.h
/usr/local/include/apt-pkg/rpmhandler.h
/usr/local/include/apt-pkg/rpmindexfile.h
/usr/local/include/apt-pkg/rpmlistparser.h
/usr/local/include/apt-pkg/rpmmisc.h
/usr/local/include/apt-pkg/rpmpackagedata.h
/usr/local/include/apt-pkg/rpmpm.h
/usr/local/include/apt-pkg/rpmrecords.h
/usr/local/include/apt-pkg/rpmshowprogress.h
/usr/local/include/apt-pkg/rpmsrcrecords.h
/usr/local/include/apt-pkg/rpmsystem.h
/usr/local/include/apt-pkg/rpmversion.h
/usr/local/include/apt-pkg/sha1.h
/usr/local/include/apt-pkg/sourcelist.h
/usr/local/include/apt-pkg/sptr.h
/usr/local/include/apt-pkg/srcrecords.h
/usr/local/include/apt-pkg/strutl.h
/usr/local/include/apt-pkg/tagfile.h
/usr/local/include/apt-pkg/version.h
/usr/local/include/apt-pkg/versionmatch.h
/usr/local/lib/apt/methods/bzip2
/usr/local/lib/apt/methods/cdrom
/usr/local/lib/apt/methods/copy
/usr/local/lib/apt/methods/file
/usr/local/lib/apt/methods/ftp
/usr/local/lib/apt/methods/gpg
/usr/local/lib/apt/methods/gzip
/usr/local/lib/apt/methods/http
/usr/local/lib/apt/methods/rsh
/usr/local/lib/apt/methods/ssh
/usr/local/lib/libapt-pkg-libc6.3-5.so.0
/usr/local/lib/libapt-pkg-libc6.3-5.so.0.1.1
/usr/local/lib/libapt-pkg.a
/usr/local/lib/libapt-pkg.la
/usr/local/lib/libapt-pkg.so
/usr/local/man/man5/apt.conf.5.gz
/usr/local/man/man5/apt_preferences.5.gz
/usr/local/man/man5/sources.list.5.gz
/usr/local/man/man5/vendors.list.5.gz
/usr/local/man/man8/apt-cache.8.gz
/usr/local/man/man8/apt-cdrom.8.gz
/usr/local/man/man8/apt-config.8.gz
/usr/local/man/man8/apt-get.8.gz
/usr/local/man/man8/apt.8.gz
/usr/local/share/locale/de_DE/LC_MESSAGES/apt.mo
/usr/local/share/locale/es_ES/LC_MESSAGES/apt.mo
/usr/local/share/locale/it_IT/LC_MESSAGES/apt.mo
/usr/local/share/locale/pt_BR/LC_MESSAGES/apt.mo
/usr/local/share/locale/ru/LC_MESSAGES/apt.mo

Is there anything wrong with my installation? How can I get apt-get working?

Thanks !
 
Old 03-27-2004, 04:06 AM   #2
beejayzed
Member
 
Registered: Jan 2004
Location: Auckland, New Zealand
Distribution: Ubuntu
Posts: 686

Rep: Reputation: 30
Read the documentation and man pages. Maybe you need to do something before using it.
 
Old 03-27-2004, 04:31 AM   #3
davidas
Member
 
Registered: Mar 2004
Distribution: Debian 'Sarge'
Posts: 168

Original Poster
Rep: Reputation: 30
This is the homepage, but there isn't documentation on the setup though. Correct me if I'm wrong.

As for the man pages, only the explanation and argument are given, nothing on the setup.

Also, the configuration is /etc/apt/apt.conf, but there isn't any apt directory in my /etc directory.

Thanks !

Quote:
Originally posted by beejayzed
Read the documentation and man pages. Maybe you need to do something before using it.
 
Old 03-27-2004, 04:40 AM   #4
beejayzed
Member
 
Registered: Jan 2004
Location: Auckland, New Zealand
Distribution: Ubuntu
Posts: 686

Rep: Reputation: 30
Try /usr/doc/apt-0.5.15cnc6/ .
 
Old 03-27-2004, 10:07 AM   #5
dishawjp
Member
 
Registered: Dec 2003
Location: Central New York
Distribution: RH/Fedora/SUSE
Posts: 64

Rep: Reputation: 15
Hi davidas,

Normally the only configuration required for apt4rpm is the optional addition of somel repositories to the /etc/apt/sources.list file, or if you have a generic sources.list, uncommenting lines fo rthe repositories you want used for your updates.

You appear to have a failed install, and a little more info would be helpful.

1) what distro and version are you running (Ex., RH9, FC1, whatever)

2) Did you install from a .rpm or a .src.rpm file, and did you get any warnings and/or error messages when installing?

As a very general recommendation, I would say, just do an "rpm -e apt" to get rid of your existing install, redownload from

http://apt.freshrpms.net and be sure to get the one specific to your distro and version, and then reinstall apt.

Just to be safe, save any error messages to text files so that we can take a look at them if things don't go well.

HTH,

Jim Dishaw
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
apt-get install not working / apt-get update is ok remy215 Debian 2 10-01-2005 07:02 PM
RPM dependency help (apt 4 rpm) Cubsy Linux - Software 4 10-08-2004 04:15 PM
Why does apt-rpm .... ??? southpole.dk Linux - Software 9 05-23-2004 06:30 AM
apt for RPM maenho Linux - Software 5 04-29-2004 10:57 AM
apt-rpm Antoine Linux - Software 6 08-11-2003 07:14 AM


All times are GMT -5. The time now is 07:55 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration