LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apt-Get (RPM Install Issues) (https://www.linuxquestions.org/questions/linux-software-2/apt-get-rpm-install-issues-134731/)

Jmeindl 01-14-2004 10:04 AM

Apt-Get (RPM Install Issues)
 
Ok.....I've got fed up with searching for file dependencies, and then finding file dependences for the files dependences. So I am trying ot install Apt-get. I am running RH9 and have the RPM of Apt-get. . . however how can I tell if it's installed correctly? I tried running a few apt-get commands in shell and keep getting the error message "command not found". Any idea where to start?

DrOzz 01-14-2004 10:10 AM

ok well first :
what rpm did you get?
what command did you use to install it?
what command do you type to run it ?

Jmeindl 01-14-2004 10:17 AM

apt-0.5.5cnc6-0.fdr.8.rh90.i386.rpm is the rpm package I used to install. I did not how ever do a command line install, instaed I used (in kde) right click - install packages. . . gives me the little progress windows as it install. I get no error messages until I try and run it.

Jmeindl 01-14-2004 10:18 AM

command i used to test to try and run it was apt-get -h <the help command>

Jmeindl 01-14-2004 11:30 AM

I ran the rpm -qlp <package name>

warning: apt-0.5.5cnc6-0.fdr.8.rh90.i386.rpm: V3 DSA signature: NOKEY, key ID 8df56d05
/etc/apt
/etc/apt/apt.conf
/etc/apt/apt.conf.d
/etc/apt/gpg
/etc/apt/gpg/gpg-pubkey-897da07a-3c979a7f
/etc/apt/gpg/gpg-pubkey-8df56d05-3e828977
/etc/apt/gpg/gpg-pubkey-db42a60e-37ea5438
/etc/apt/preferences
/etc/apt/rpmpriorities
/etc/apt/sources.list
/etc/apt/sources.list.d
/etc/apt/sources.list.d/macromedia.list
/etc/apt/vendors.list
/etc/apt/vendors.list.d
/usr/bin/apt-cache
/usr/bin/apt-cdrom
/usr/bin/apt-config
/usr/bin/apt-get
/usr/bin/apt-shell
/usr/bin/genbasedir
/usr/bin/genpkglist
/usr/bin/gensrclist
/usr/lib/apt
/usr/lib/apt/methods
/usr/lib/apt/methods/bzip2
/usr/lib/apt/methods/cdrom
/usr/lib/apt/methods/copy
/usr/lib/apt/methods/file
/usr/lib/apt/methods/ftp
/usr/lib/apt/methods/gpg
/usr/lib/apt/methods/gzip
/usr/lib/apt/methods/http
/usr/lib/apt/methods/rsh
/usr/lib/apt/methods/ssh
/usr/lib/apt/scripts
/usr/lib/apt/scripts/gpg-checker.lua
/usr/lib/apt/scripts/gpg-import.lua
/usr/lib/apt/scripts/kernel-upgrade.lua
/usr/lib/apt/scripts/preserve-conf.lua
/usr/lib/libapt-pkg-libc6.3-5.so.0
/usr/lib/libapt-pkg-libc6.3-5.so.0.0.0
/usr/share/doc/apt-0.5.5cnc6
/usr/share/doc/apt-0.5.5cnc6/ABOUT-NLS
/usr/share/doc/apt-0.5.5cnc6/AUTHORS
/usr/share/doc/apt-0.5.5cnc6/AUTHORS.RPM
/usr/share/doc/apt-0.5.5cnc6/COPYING
/usr/share/doc/apt-0.5.5cnc6/COPYING.GPL
/usr/share/doc/apt-0.5.5cnc6/TODO
/usr/share/doc/apt-0.5.5cnc6/contrib
/usr/share/doc/apt-0.5.5cnc6/contrib/apt-files
/usr/share/doc/apt-0.5.5cnc6/contrib/apt-files/README
/usr/share/doc/apt-0.5.5cnc6/contrib/apt-files/apt-files.conf
/usr/share/doc/apt-0.5.5cnc6/contrib/apt-files/apt-files.lua
/usr/share/doc/apt-0.5.5cnc6/contrib/apt-files/convert.py
/usr/share/doc/apt-0.5.5cnc6/contrib/apt-rpm
/usr/share/doc/apt-0.5.5cnc6/contrib/apt-rpm/apt-rpm
/usr/share/doc/apt-0.5.5cnc6/contrib/apt-rpm/apt-rpm.1
/usr/share/doc/apt-0.5.5cnc6/examples
/usr/share/doc/apt-0.5.5cnc6/examples/apt.conf
/usr/share/doc/apt-0.5.5cnc6/examples/configure-index
/usr/share/doc/apt-0.5.5cnc6/examples/sources.list
/usr/share/locale/de_DE/LC_MESSAGES/apt.mo
/usr/share/locale/es_ES/LC_MESSAGES/apt.mo
/usr/share/locale/it_IT/LC_MESSAGES/apt.mo
/usr/share/locale/pt_BR/LC_MESSAGES/apt.mo
/usr/share/locale/ru/LC_MESSAGES/apt.mo
/usr/share/man/man5/apt.conf.5.gz
/usr/share/man/man5/apt_preferences.5.gz
/usr/share/man/man5/sources.list.5.gz
/usr/share/man/man5/vendors.list.5.gz
/usr/share/man/man8/apt-cache.8.gz
/usr/share/man/man8/apt-cdrom.8.gz
/usr/share/man/man8/apt-config.8.gz
/usr/share/man/man8/apt-get.8.gz
/usr/share/man/man8/apt.8.gz
/var/cache/apt
/var/cache/apt/archives
/var/cache/apt/archives/partial
/var/cache/apt/genpkglist
/var/cache/apt/gensrclist
/var/state/apt
/var/state/apt/lists
/var/state/apt/lists/partial

Ok, so i go over to /usr/bin and issue the command. . . and still get command not found, i even tried ./apt-get -h still no luck

dishawjp 01-14-2004 11:46 AM

A couple of things...

First, you must be root to run apt-get. If, for some reason /usr/bin is not in your path, try the command:

# /usr/bin/apt-get update

to see what happens. If you're online, you should see your computer connect to whatever apt repositories you have in your /etc/apt/sources.list file. If this doesn't happen, send in the error output you get from the terminal window and maybe I can figure out what's going on from that. If the update command is successful, then issue the command

# /usr/bin/apt-get upgrade

and if that's successful do a:

#apt-get install synaptic

which will give you a GUI interface to run apt from.

It does appear to be installed from what you've sent in, so if the error message is "command not found" I can only guess that it's a path issue.

[edit]

Doh!!

I just reread your post and it's not a path issue, and the "apt-get -h" command is, I believe, a valid command. Just try the "apt-get update" as root. Also maybe "man apt-get" or "man apt" since you should now have the man pages installed.

Jim Dishaw

Jmeindl 01-14-2004 12:23 PM

first off thanks for your reply!

[root@dhcphost164 bin]# /usr/bin/apt-get update
bash: /usr/bin/apt-get: No such file or directory

[root@dhcphost164 root]# man apt-get
No manual entry for apt-get
[root@dhcphost164 root]# man apt
No manual entry for apt
[root@dhcphost164 root]#


Is this looking like a path issue?

dishawjp 01-14-2004 01:43 PM

No, that does not appear to be a path issue. That's just plain weird.

Ok, this is a lousy way to approach things, but I would do a removal and a reinstallation of apt-get.

# rpm -e apt

then "cd" to where you have the original apt*.rpm file stored and

#rpm -Uvh apt-0.5.5cnc6-0.fdr.8.rh90.i386.rpm

Or better yet, go to http://apt.freshrpms.net

and download

apt-0.5.5cnc6-fr1.i386.rpm

and use that one instead. That's the one that I have used successfully several times and know that it works well.

Wish I had a better answer...

I have been using apt4rpm since RH 6.2 and use it instead of up2date, yum, current, redcarpet or any of those other updaters.

Wait, just had a last thought. You don't have redcarpet from Ximian installed, do you? Redcarpet and apt do not play well together. Once I actually ended up doing a reinstall of RH9 because of that. About the only time I've ever had to do a Linux reinstall, it almost made me feel like a Windows user :)

Jim Dishaw

Jmeindl 01-14-2004 02:11 PM

Jim:

it worked!!!!!! I dwn the rpm u suggested....thanks alot

dishawjp 01-15-2004 06:21 AM

Glad I was able to help!

Enjoy!

Jim Dishaw


All times are GMT -5. The time now is 10:53 PM.