Click to See Complete Forum and Search --> : Attention Mandrake 9 Users (URPMI)


red_over_blue
12-16-2002, 11:10 PM
Edit - I came back and edited this tip to take out some confusing text and make sure the links were all good.

If you are using MDK 9.0, read the following if you want to make your life alot easier. This will sort out almost all of your dependency issues! The initial download takes time, but after that, things go quickly. (the addresses show up as links, so click on the link to view the entire text). As root:


urpmi.addmedia rpmfind1 http://rpmfind.net/linux/Mandrake/9.0/i586/Mandrake/RPMS with ../base/hdlist.cz

urpmi.addmedia rpmfind_contrib http://rpmfind.net/linux/Mandrake/9.0/contrib/RPMS with ../../i586/Mandrake/base/hdlist2.cz

urpmi.addmedia plf ftp://plf.chem.yorku.ca/pub/plf/9.0 with hdlist.cz


Now, if you want to install almost any piece of software, mplayer for example, just type:


urpmi mplayer


For the plf source location, go to the penguin liberation front and you can find a mirror closer to you.

There are other commands, like:


urpmi --summary wmtop


To see if the rpm wmtop is available, and a brief description.

or


urpmi.update -a


to update all sources other than CD's (which won't change and thus don't need updating).

Have fun... and please post back with your results... good or bad. The reason I posted this is because I used urpmi almost exclusively when using MDK 9.0, and I still see people on LNO trying to solve dependency problems the hard way.

viperlin
12-19-2002, 09:51 AM
"bash: bla#urpmi.addmedia: command not found"

if you get this then go to /usr/sbin/ and type:

"./urpmi.addmedia plf ftp://plf.chem.yorku.ca/pub/plf/9.0 with hdlist.cz"
again go to the pengiun liberation front penguin liberation front (http://plf.zarb.org/) and go to the "Urpmize me" section and select the closest mirror and your mandrake distro

hope this adds to the URPMI HOW-TO creation.

S.D.Willie
12-19-2002, 10:08 AM
allow me to be the 1st guinea pig:

the first two links you posted came back with errors:
________________________________________


[root@localhost sd]# urpmi.addmedia rpmfind1 http://rpmfind.net/linux/Mandrake/9...6/Mandrake/RPMS with ../base/hdlist.cz
added medium rpmfind1
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.Installation CD 1 (x86) (cdrom1).cz]
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.Installation CD 2 (x86) (cdrom2).cz]
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.International CD (x86) (cdrom3).cz]
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.update_source.cz]
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.plf.cz]
retrieving description file of "rpmfind1"...
retrieving source hdlist (or synthesis) of "rpmfind1"...
--09:05:24-- http://rpmfind.net/linux/Mandrake/9...6/Mandrake/base/hdlist.cz
=> `/var/cache/urpmi/partial/hdlist.cz'
Resolving rpmfind.net... done.
Connecting to rpmfind.net[18.29.1.67]:80... connected.
HTTP request sent, awaiting response... 404 Not Found
09:05:24 ERROR 404: Not Found.

...retrieving failed: wget failed: exited with 1 or signal 0

retrieve of source hdlist (or synthesis) failed
no hdlist file found for medium "rpmfind1"
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.rpmfind1.cz]
problem reading synthesis file of medium "rpmfind1"
unable to update medium "rpmfind1"
[root@localhost sd]#
_______________________________________

this happened with the second as well. the 3rd worked fine. maybe the sites were down?

after trying to get mplayer anyhow i get this error:
_______________________________________
Installation failed:
liblzo.so.1 is needed by mplayer-0.90-0.rc1.3plf
______________________________________

sorry the post is so long but i figured i might as well be specific. :)

SD

p.s. i assusme he put "blah#" as your username so i just left that out

S.D.Willie
12-19-2002, 10:23 AM
ok, update.
i installed liblzo manually, removed the conflicting codecs i installed prior and low and behold got mplayer installed.

but what about the gui? i was used to running "gmplayer" and getting the gui form of mplayer. do i need an additional gui rpm? i would think not.........

viperlin
12-19-2002, 10:26 AM
strangely enough the first 2 didn't work for me either
but mplayer seemed to go fine apart from the fact that i chose not to install it
if you su to root and type "urpmi mplayer" then it should ask about dependancies and install fine (i hope) try that
and thanks for being specific in your post, i knew exactly what u meant and putting in the errors really helps (well, not this time coz i got them too :))

S.D.Willie
12-19-2002, 11:16 AM
but............................what about the gui?

i just played an .asf file and it worked fine but of course i had to run it from the cli which id rather not do. any ideas?

i even took the skins from the root directory(i installed the mplayer skins- rpm) and put them in my .mplayer directory as well as the fonts directory but no luck.....

red_over_blue
12-19-2002, 01:09 PM
Ok, to sort out the first two sources:

1. For the first one, I didn't notice that it didn't write the full address, so click on the link, and then type in the full address when you type the urpmi.addmedia

2. For the second one, try:



bla#urpmi.addmedia rpmfind_contrib http://www.rpmfind.net/linux/Mandrake/9.0/contrib/RPMS with ../../i586/Mandrake/base/hdlist2.cz


Make sure you click on the second link as well in case the whole address is not shown.

That should fix those problems. As with mplayer, if there is no binary called gmplayer, make a bash script called gmplayer that uses the commandline option to use the gui, and put it in /usr/bin. I'm not infront of my linux computer right now, so I don't know what the flags are for sure.

Nu-Bee
12-19-2002, 01:18 PM
Originally posted by red_over_blue
If you are using MDK 9.0, read the following if you want to make your life alot easier. This will sort out almost all of your dependency issues! The initial download takes time, but after that, things go quickly. (the addresses show up as links, but just type them exactly as they appear). As root:


What in the world are you talking about?

Type them WHERE....in WHAT?

What in the world is bla# ?

viperlin
12-19-2002, 02:07 PM
ok Nu-Bee
u obviously don't know about the terminal
it is the command line which is the basics of linux, it can be used for pretty much everything a GUI can be used for, but fasrer
type these commands in the terminal, OK?

viperlin
12-19-2002, 02:13 PM
"mplayer: relocation error: mplayer: undefined symbol: XineramaIsActive"
just got this at the end while trying to play a video, any idea's what it means

Nu-Bee
12-19-2002, 02:43 PM
Originally posted by viperlin
ok Nu-Bee
u obviously don't know about the terminal
it is the command line which is the basics of linux, it can be used for pretty much everything a GUI can be used for, but fasrer
type these commands in the terminal, OK?

Yes, I know about "terminal"...but he wasn't very clear. Also, what is that bla# all about?

BTW, I finally found something much, much better than this thread:

Easy URPMI (http://www.zarb.org/~nanardon/)

Don't get me wrong...I am (very) glad for this thread as it was what led me to this place.

red_over_blue
12-19-2002, 02:51 PM
Nu-Bee... that is a very good link, I'm sure the Mandrake users will get alot out of it.

However, if you don't understand something, you don't have to be so hostile, just ask.

The "bla#" represents the commandline, where "bla" would show your hostname/current directory, and the "#" is what you see when you are logged in as root, as opposed to the "$" you would get when logged in as a normal user.

Also, the first two (non-PLF) sources are more legitimate for people running networks at schools, work, etc that can't afford to install questionable software.

Nu-Bee
12-19-2002, 02:57 PM
Originally posted by red_over_blue
Nu-Bee... that is a very good link, I'm sure the Mandrake users will get alot out of it.

However, if you don't understand something, you don't have to be so hostile, just ask.

Re-read my previous post as I edited it.
Thank you for explaining what this bla# is...it had me pulling my hair out.

I still don't understand why you said to type it exactly...you might have mentioned to not type the bla# part. :)

red_over_blue
12-19-2002, 03:03 PM
I was just talking about how what should simply be text that is typed into the command line appears as a link because it is recognized that way, and I thought people might get confused about if they should type it, go to the link and type something from there, etc.

Edit - sometimes it is easy to take for granted what level everyone is at, I will try to be more explicit when stating something to a more general audience.

Edit again - also, the reason I did not say "where to type it" and "not to type the bla#" text was because the bla# was supposed to imply that you are at the CLI and logged in as root.

Nu-Bee
12-19-2002, 03:23 PM
Originally posted by red_over_blue

Edit again - also, the reason I did not say "where to type it" and "not to type the bla#" text was because the bla# was supposed to imply that you are at the CLI and logged in as root.

Is this some kind of "standard" way of noting this?

If so, I have never seen this before.

Notice that in the second part of your post that you did not put the bla# in.... :)

viperlin
12-19-2002, 03:36 PM
the correct way should be this shouldn't it:
$ urpmi etc etc etc

or

[john@Upstairs2 john]$ urpmi etc etc etc

implying that you type it in the terminal
if the user has edited the terminal not to display this "[user@localhost folder]$" setup then they will know about the terminal and where to type it anyway.

red_over_blue
12-20-2002, 04:13 PM
In any case, how is it working for everyone? I had no problems when I used mandrake and urpmi, I thought it was the greatest thing for an rpm based distro.

Is anyone having success and finding it a valuable tool?

viperlin
12-20-2002, 06:27 PM
mine is working fine, now i have to get out of the habbit of going to rpmfind.net (unless i want an rpm that is not for my distro, since redhat RPM's normally work with MDK as well

Molecule Man
12-21-2002, 02:08 PM
If you have a mirror without a hdlist.cz file you can still use it with urpmi. Add the following options: -h -f like the following command:

urpmi.addmedia --update -f -h update-stealth ftp://ftp1a.ny1.stealth.net/pub/mirrors/ftp.mandrake.com/Mandrake/updates/9.0/RPM

and you will generate your own hdlist.cz file.

The --update switch will set up an update source.

And after you have done this you can still use the gui to add packages.

S.D.Willie
01-29-2003, 01:42 PM
as i was asking earlier how do you get the gui working for mplayer? there is no package for gmplayer to get. i can run it from the cli but id rather not since im lazy.

anyone have the answer i need?

S.D.Willie
01-29-2003, 06:51 PM
nevermind................i figured out i had to do a urpmi mplayer-gui mplayer-skins

thank you..thank you.

i'll be here all da veek..............try the veal........

SD

Read Icculus
01-30-2003, 11:29 PM
Great post red_over_blue. Worked for me when I tried it a month or so ago, and it worked fine again for a new install of 9.0. It hasn't taken care of all of the dependencies that sometimes pop-up, but it's just about perfect. Thanks for the easy instructions.

rickenbacherus
02-03-2003, 07:38 PM
Thanks red_over_blue for this - it was quite easy I thought and I've only been at this Linux business for a week!! BTW, for all of you copy & pasters out there such as myself, here is the first one with a complete URL (i think)

EDIT: here are all three copied directly from my term.

urpmi.addmedia rpmfind1 http://rpmfind.net/linux/Mandrake/9.0/i586/Mandrake/RPMS/ with ../base/hdlist.cz

urpmi.addmedia plf ftp://plf.chem.yorku.ca/pub/plf/9.0 with hdlist.cz

urpmi.addmedia rpmfind_contrib http://www.rpmfind.net/linux/Mandrake/9.0/contrib/RPMS with ../../i586/Mandrake/base/hdlist2.cz

rickenbacherus
02-03-2003, 10:24 PM
What can I say but THANK YOU THANKYOU. (use the accent of that Little Caesars Pizza guy). Now i've got my pc's networked, know how to install software (thru RPM anyway) and several other things that have improved my Linux experience vastly. Not bad for only using it a week eh?

If you are new to Linux and have Mandrake 9.0 GET THIS done on your box a.s.a.p. - it made my life easier fer sher.

jdii1215
02-05-2003, 03:24 PM
Yes, this is nice-- also nice, is the fact that once the sources are added, you actually have two ways to use them:

1. Software Installer now lists them, in the Mandrake Control Center. You can also update with installer.

2. If you want things from just one source you can tell urpmi what to use, and if you ahve e mirror that keeps not connecting and you get errors that talk about curl, then try --wget instead:

urpmi --auto-select --wget --media rpmfind1

will have you using your modem for quite a while, but urpmi will have updated to the latest of everything when done, but please do not do that, it was just given to illustrate syntax(I gave urpmi that with the MandrakeClub test RPM source, and cringed when it built itself a local mirror of all the test RPMS ever put in the test RPM server directory and not removed, and then merrily tried to install about 78 apps-- this took 2+ hours on a VERY fast connection). You would be better off using this kind of syntax:

urpmi mplayer --auto-select --wget

--wget is what gave me and others info that helped some people figure out what the Club Test RPM mirror was doing.

--wget calls a thing called wget which is powerful by itself.

man wget #for more info

--auto-select tells it to figure out for itself what packages are to be installed, and it will usually figure out basic deps that way by itself, so if it asks for CDs, give them to it.

All the commands go in a console, or in Konsole as
su - root #<--type that in Konsole too-- FIRST,
# then give it the root password

# means ignore anything to right as far as typing in, is the same as a DOS REM or ;-- if you type it in anyways, Linux will ignore it as it will think it is a COMMENT.

John Danielson.

CyPHer_138
02-05-2003, 11:56 PM
I really like urpmi alot. It makes things easier.

Rickead2000
02-09-2003, 02:24 PM
am i doing this right?

i have run all the commands i was meant to, and it has downloaded about 10mb of stuff.

however, when i type for example $urpmi wine, it just ejects my cdrom drive and asks for mandrake install cd2 and installs that version of wine. however, i know for a fact that there is a newer version available.

do i need to add something to the command line or what?

proKrastinate
04-18-2004, 08:33 PM
i keep getting this error eveywhere i try to figure out urpmi
retrieve of source hdlist (or synthesis) failed
no hdlist file found for medium "main"
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.main.cz]
problem reading synthesis file of medium "main"
unable to update medium "main"


ive gone to several places (including the one listed above, this one (http://urpmi.org/easyurpmi/index.php?user%5Bvers%5D=9.2&user%5Barch%5D=i586&selection%5Bcontrib%5D=on&mirror%5Bcontrib%5D=ftp%3A%2F%2Fmirrors.usc.edu&selection%5Bmain%5D=on&mirror%5Bmain%5D=ftp%3A%2F%2Fmirrors.usc.edu&selection%5Bplf%5D=on&mirror%5Bplf%5D=ftp%3A%2F%2Fmandrake-forum.org&selection%5Bupdates%5D=on&mirror%5Bupdates%5D=ftp%3A%2F%2Fmirrors.usc.edu&prefix=#third) ) and forever receive the same error.

everything else seems to check out fine, but thats where it starts yelling at me

proKrastinate
04-18-2004, 08:35 PM
heres a text of the whole instance

and im using MDK 9.2

Molecule Man
04-19-2004, 08:28 AM
Seems urpmi is having a problem with the ftp://mirrors.usc.edu

Delete that entry and try a different mirror.

WayStar
04-19-2004, 09:54 AM
Most of the sources links have been messed up for awhile now. I think that they are changing directory structures or some such thing.

A few are back up and running. There is a list at
http://www.mandrakesecure.net/en/ftp.php


When I updated last week, I had to modify the path in the Easy Urpmi output. I used my web browser to surf my way through to find the right path.

Looking at the Easy Urpmi page this morning, the notice says that 9.2 has been fixed. I haven't tested it out yet, since I'm at work.

Here's the link for Easy Urpmi again: http://urpmi.org/easyurpmi/index.php


-Waylena

proKrastinate
04-19-2004, 12:14 PM
cool, how do i go about removing my current contrib tho? i tried to just copy paste a new one last night but it gave me an error.

edit -- nevermind i got it urpmi.removemedia contrib

I tried the same server again under 9.2 and this time (i might have missed it when i tried it ) and got a hdlist failed or whatever. server was mirrors.usc.edu.

the second time around i got a working update so i will see if it works

proKrastinate
04-19-2004, 09:51 PM
nope, i still get contrib uses an invalid list file

WayStar
04-21-2004, 11:35 AM
"contrib uses invalid list file" or whatever the error is:

Does the error message pop up in a box after you download and install or update software packages? If so, it's not really the contrib sources that are wrong.

I get that message ever since upgrading to 9.2. I searched the text of the error message on google and turned up quite a few hits. Apparently, it's not something to worry about (or at least it wasn't when I researched it). It hasn't prevented me from using contrib sources, though. They work just fine.

Now, if the error message is something you get when you update your sources, either with GUI or urpmi.update contrib, that's a very different animal. In that case, I'd check the path again, or try a different mirror.

-Waylena

proKrastinate
04-23-2004, 10:57 PM
whenever I do urpmi (program) it gives me that error. i get the error immediately after hitting enter, before it shows some files getting downloaded from what it calls "other sources" i think. so its not when I update my sources and its not afteri download software its before i actually download the software.

sometimes its able to get the download from other sources, some times its not

catman
04-30-2004, 07:40 PM
I thank all who kindly put so much time and effort into this thread, it has been of great help to me! and to all the other Mandrake users. :)

Thank You red_over_blue for starting it ! :D