LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   unable to use YUM (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-use-yum-4175443234/)

swaggerlee 12-28-2012 05:41 AM

unable to use YUM
 
2 Attachment(s)
i installed fresh fedora 16 on my pc & tried to install google chrome via yum but all the time it gives me same problem

i inserted the attachment plzz suggest me.

smallpond 12-28-2012 10:30 AM

Are you sure your network is working properly? Try:

Code:

host www.google.com
ping 74.125.131.105


Snark1994 12-28-2012 10:47 AM

Right, a couple of things:

1) It's often easier for us if you post the actual output of commands in [CODE][/CODE] tags, instead of attaching screenshots:
Code:

like this
2) Running as root is often a Bad Idea - using sudo is a better option for most situations.

3) Running
Code:

echo 'dp ALL=(ALL) ALL' >> /etc/sudoers
is almost always a bad idea - use the 'visudo' command, as it makes sure you don't mess up your sudoers file by putting invalid syntax in it

4) It sounds like you're having difficulty connecting to mirrors. Is your internet connection working? (I assume it probably is, as you have a browser window open in one of your screenshots looking at LinuxQuestions). Do you use a proxy in your web browser? What does running

Code:

curl www.linuxquestions.org
give you? The other possibility is that it's the linuxdownload.adobe.blah and the rpmfusion mirrors which are down - in which case try commenting out their lines in the mirrorlist file.

Hope this helps,

John VV 12-28-2012 06:07 PM

the adobe reop is VERY VERY notorious for being off line and causing problems

disable it !!!
change the "enabled=1" to "enabled=0" in the repo text file in /etc/yum.repo.d folder

then use yum's " --enablerepo=adobe" to turn it on ( temporally )to update flash

Also the "fast-mirror" is known to cause all kinds of annoying little problems all the time ( hence the "annoying" part )

unless you REALLY need it
i would recommend you not use it
But if you want then use it -- your choice .


Also Be Aware that -- Fedora 16 will hit it's END OF LIFE on Feb. 08 2013 in just over one month
at that time there will never be any more support for fedora 16 -- it will be basically dead.

time to upgrade to fedora 17
or after Jan. 08 fedora 18


as to "Snark1994"
post about SUDO
fedora By Default dose not use it !!!
Fedora used "su" and "su -"
It was deemed a "too big" of a security risk and was disabled by default .

also do not just try to install some named program
SEARCH for it first
-- it might have a slightly different name --
for example
fedora has "chromium" in the base repos
and if you add googles repo then chrome is in that one
try as a normal user and NOT root
Code:

su -
---- your root password when asked for -----
yum search chrome

then from the list - copy/paste "google-chrome-stable"


your "echo do all for SUDO is the problem
fedora dose not use sudo

please use "su -" and do not forget the blank space and the dash

Snark1994 12-29-2012 05:39 AM

Quote:

Originally Posted by John VV (Post 4858763)
as to "Snark1994"
post about SUDO
fedora By Default dose not use it !!!
Fedora used "su" and "su -"
It was deemed a "too big" of a security risk and was disabled by default .

Sorry, I was not aware of that. I was misled by the fact that ey was attempting to write to the sudoers file at the top of the second screen shot: so I assumed they were using sudo!

Apologies,

swaggerlee 12-31-2012 12:28 AM

1 Attachment(s)
@ smallpond i tried what you asked me to i.e.
Code:

host www.google.com
ping 74.125.131.105

and it gave me the following result that i attached hereby


until i pressed ctrl+z it was in same state as i showwed in the picture

John VV 12-31-2012 12:38 AM

???
Have you done this ????
------ after installing Google's repo for fedora --------
Code:

su -
yum search google

????
then from the list
installing " google-chrome-stable"

swaggerlee 12-31-2012 12:42 AM

@ Snark1994

Quote:

Originally Posted by Snark1994 (Post 4858499)

4) It sounds like you're having difficulty connecting to mirrors. Is your internet connection working? (I assume it probably is, as you have a browser window open in one of your screenshots looking at LinuxQuestions). Do you use a proxy in your web browser? What does running

Code:

curl www.linuxquestions.org
give you? The other possibility is that it's the linuxdownload.adobe.blah and the rpmfusion mirrors which are down - in which case try commenting out their lines in the mirrorlist file.

yes my internet connection is working fine & i do use proxy in my web browser since am working in my office so they have a setup up proxy through which we connect to internet.

after running you suggesttion i ran this
Code:

curl www.linuxquestions.org
and it gave me the following

Quote:

[root@localhost dp]# curl www.linuxquestions.org
curl: (7) couldn't connect to host
[root@localhost dp]#
now what to do..........?????/

swaggerlee 12-31-2012 01:07 AM

@ John VV

Quote:

Originally Posted by John VV (Post 4859844)
yum search google
[/code]

this is what it give me after running the above code :

Code:

[root@localhost ~]# yum search google
Loaded plugins: langpacks, presto, refresh-packagekit
Could not retrieve mirrorlist http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-16&arch=i386 error was
12: Timeout on http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-16&arch=i386: (28, '')
Could not retrieve mirrorlist http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-updates-released-16&arch=i386 error was
12: Timeout on http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-updates-released-16&arch=i386: (28, '')
Could not retrieve mirrorlist http://mirrors.rpmfusion.org/mirrorlist?repo=nonfree-fedora-16&arch=i386 error was
12: Timeout on http://mirrors.rpmfusion.org/mirrorlist?repo=nonfree-fedora-16&arch=i386: (28, '')
Could not retrieve mirrorlist http://mirrors.rpmfusion.org/mirrorlist?repo=nonfree-fedora-updates-released-16&arch=i386 error was
12: Timeout on http://mirrors.rpmfusion.org/mirrorlist?repo=nonfree-fedora-updates-released-16&arch=i386: (28, '')
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again
[root@localhost ~]#


also i enabled=0 at etc/yum.d.repos but no succes

John VV 12-31-2012 02:49 PM

did you read the fedora documentation about a proxy?
you need to configure yum to use the proxy .


the fedora wiki
http://fedoraproject.org/wiki/Docs/D...Guide/YumProxy
and
http://www.linux2aix.com/linux/redha...h-a-proxy.html

this is from the fedora 5 docs but it still applies
http://docs.fedoraproject.org/en-US/...xy-server.html



Yum needs to be able to use your proxy


All times are GMT -5. The time now is 04:10 AM.