LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I broke yum... i think (https://www.linuxquestions.org/questions/linux-newbie-8/i-broke-yum-i-think-886813/)

testpilot123 06-17-2011 01:03 AM

I broke yum... i think
 
Well hello all, just starting out to use linux and of course, everytime i first install an OS, i download 2 things, flash and Chrome...

Chrome works fine, but flash has been giving me a lot of problems. Ive downloaded the yum file from the Adobe website, and unpacked it using the GUI, yet it still didnt work. So i started googling how to use yum. so i followed some directions and tried doing
Code:

yum install flash
, this is what i get:

Code:

[root@localhost testpilot]# yum update flash
Loaded plugins: langpacks, presto, refresh-packagekit
Adding en_US to language list
http://linuxdownload.adobe.com/linux/i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - ""
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: adobe-linux-i386. Please verify its path and try again
[root@localhost testpilot]#

but thats not the only problem, i think my repo's are messed up or something because look what happens when i type:
Code:

yum update
Code:

[root@localhost testpilot]# yum update flash
Loaded plugins: langpacks, presto, refresh-packagekit
Adding en_US to language list
http://linuxdownload.adobe.com/linux/i386/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - ""
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: adobe-linux-i386. Please verify its path and try again
[root@localhost testpilot]#

as you can see, its still trying to goto the adobe website, even when i type in a complety different comand from getting flash.

SO i guess i have 2 questions:
1) how can i "restore defaults" on yum so that i can actualy use it
2) How can i install flash??


THANKS GUYS! im excited to be apart of this forum and any help will be greatly appreciated!

Testpilot

John VV 06-17-2011 03:09 AM

a few things
1) fedora ( i like it ) BUT it is not the easiest to use
and it brakes a lot .But if you LIKE to fix things then fedora as great

2)
fedora DOSE have a LOT and i mean A LOT of very good documentation
http://docs.fedoraproject.org/en-US/index.html
and one of the BEST quick "at a glance" help pages Mjmwired's
http://www.mjmwired.net/resources/mjm-fedora-f15.html
( mjm uses "sudo" NOT INSTALLED by default in fedora !!!
an i dislike it -- ether you like sudo or you hate it " love/hate"
I use "su -" and be done with it )

so IF you do want to continue with fedora
flash
http://www.mjmwired.net/resources/mj...f15.html#flash

the Adobe repo is a KNOWN problem and has been OFFLINE as much as it has been ONLINE
--it is a pain in the @$$ --
disable it

to do that there are a few ways
i will not use the gui( it is different for kde,gnome,xfce,e17,... )
Code:

su -
---- your root password when asked for ----
gedit /etc/yum.repos.d/adobe-linux-i386.repo

then change the line
Code:

----
enabled=1
-- to this ---
enabled=0

change the 1 to a 0

16pide 06-17-2011 07:57 AM

@John VV
Why do you tell someone who just started using Linux to disable the Adobe repo?
The repo may have been down when testpilot123 tried it, but it is up now.
The benefit of using the repo is that later when a new flash version appears on the repo, he'll get it as part of the automatic system update.

@testpilot123
Can you try this in a terminal window:
Code:

cd /tmp
wget http://linuxdownload.adobe.com/linux/i386/repodata/repomd.xml
ping linuxdownload.adobe.com
ping www.google.com

You may well have a network problem

carltm 06-17-2011 08:07 AM

Actually I recommend that people disable any third party repos.
That's not the same as removing them. By disabling them, it
means they are not used by default.

It's rare that I've had an update from a distro break something,
but there have been many times that updates from third party
repos have broken packages. For a beginner it can be very
difficult to troubleshoot the effects of a broken package, so
I recommend that they only use them when they need them and
to leave them disabled by default.

DavidMcCann 06-17-2011 09:04 AM

Quote:

Originally Posted by carltm (Post 4388537)
Actually I recommend that people disable any third party repos.
That's not the same as removing them. By disabling them, it means they are not used by default. It's rare that I've had an update from a distro break something, but there have been many times that updates from third party repos have broken packages.

It depends on what distro you're using. For Fedora, you only need 3 repositories: the official one, RPMfusion, and Adobe. Adobe's content is unique, and RPMfusion is very careful to maintain compatability with Fedora. When you have several repositories carrying the same material, or repos that might be described as a bit amateurish, that's when you get trouble (think SuSe!).

testpilot123 06-17-2011 11:39 AM

WOW!
 
Thanks for all the quick replies!

@16pride i can ping all the websites, i am typeing this in fedora :)
but i couldnt wget adboe's:
Code:

[root@localhost ~]# wget http://linuxdownload.adobe.com/linux/i386/repodata/repomd.xml
--2011-06-17 11:54:55--  http://linuxdownload.adobe.com/linux/i386/repodata/repomd.xml
Resolving linuxdownload.adobe.com... failed: Name or service not known.
wget: unable to resolve host address “linuxdownload.adobe.com”
[root@localhost ~]#

Ok, i disable'd adobe's repo, now its looking for rpmfusion's...

while using the command:
Code:

yum update yum
Code:

[root@localhost ~]# yum update yum
Loaded plugins: langpacks, presto, refresh-packagekit
Adding en_US to language list
Could not retrieve mirrorlist http://mirrors.rpmfusion.org/mirrorlist?repo=free-fedora-14&arch=i386 error was
14: PYCURL ERROR 6 - ""
Error: Cannot retrieve repository metadata (repomd.xml) for repository: rpmfusion-free. Please verify its path and try again


16pide 06-17-2011 01:04 PM

if wget http://linuxdownload.adobe.com/... fails, I still think you have a network problem of some sort because that exact same command works for me here right now.
Your browser could be working through a proxy, etc ... but wget should work for yum to be happy.

You said you wanted to have flash working, and the adobe repository would give that in a matter of seconds if only you could reach that site.

If you want to debug it from the network angle, I can help you, if you post the output of the commands I mention above.

Additionally, please post the output of:
Code:

cat /etc/resolv.conf
route
nslookup www.google.com
nslookup linuxdownload.adobe.com


testpilot123 06-17-2011 01:56 PM

Network Stuff
 
@16pide

Code:

[root@localhost tmp]# cd /tmp
[root@localhost tmp]# wget http://linuxdownload.adobe.com/linux/i386/repodata/repomd.xml
--2011-06-17 13:57:31--  http://linuxdownload.adobe.com/linux/i386/repodata/repomd.xml
Resolving linuxdownload.adobe.com... failed: Name or service not known.
wget: unable to resolve host address “linuxdownload.adobe.com”
[root@localhost tmp]# ping linuxdownload.adobe.com
PING linuxdownload.wip4.adobe.com (192.150.16.37) 56(84) bytes of data.
64 bytes from 192.150.16.37: icmp_req=1 ttl=240 time=60.8 ms
64 bytes from 192.150.16.37: icmp_req=2 ttl=240 time=66.3 ms
64 bytes from 192.150.16.37: icmp_req=3 ttl=240 time=69.8 ms
64 bytes from 192.150.16.37: icmp_req=4 ttl=240 time=80.8 ms
64 bytes from 192.150.16.37: icmp_req=5 ttl=240 time=58.2 ms
64 bytes from 192.150.16.37: icmp_req=6 ttl=240 time=68.0 ms
64 bytes from 192.150.16.37: icmp_req=7 ttl=240 time=60.1 ms
^C
--- linuxdownload.wip4.adobe.com ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 6009ms
rtt min/avg/max/mdev = 58.294/66.323/80.872/7.178 ms

Code:

--- linuxdownload.wip4.adobe.com ping statistics ---
30 packets transmitted, 30 received, 0% packet loss, time 29017ms
rtt min/avg/max/mdev = 125.300/219.810/328.892/49.885 ms
[root@localhost tmp]# man cat
[root@localhost tmp]# cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 192.168.1.254
[root@localhost tmp]# route
Kernel IP routing table
Destination    Gateway        Genmask        Flags Metric Ref    Use Iface
192.168.1.0    *              255.255.255.0  U    1      0        0 eth0
default        192.168.1.254  0.0.0.0        UG    0      0        0 eth0
[root@localhost tmp]# nslookup www.google.com
Server:                192.168.1.254
Address:        192.168.1.254#53

Non-authoritative answer:
www.google.com        canonical name = www.l.google.com.
Name:        www.l.google.com
Address: 74.125.227.16
Name:        www.l.google.com
Address: 74.125.227.18
Name:        www.l.google.com
Address: 74.125.227.20
Name:        www.l.google.com
Address: 74.125.227.17
Name:        www.l.google.com
Address: 74.125.227.19

[root@localhost tmp]# nslookup linuxdownload.adobe.com
Server:                192.168.1.254
Address:        192.168.1.254#53

Non-authoritative answer:
linuxdownload.adobe.com        canonical name = linuxdownload.wip4.adobe.com.
Name:        linuxdownload.wip4.adobe.com
Address: 192.150.16.37


16pide 06-18-2011 07:49 AM

192.150.16.37 is the address that your dns is providing (your post above)
So I tried:
Code:

wget http://192.150.16.37/linux/i386/repodata/repomd.xml
Ans it does not work.
So I'm suspecting a DNS issue.
Can you try that wget and yum using google's dns:
Code:

$ cat /etc/resolv.conf
nameserver 8.8.8.8

then try:
Code:

wget http://linuxdownload.adobe.com/linux/i386/repodata/repomd.xml
yum update


testpilot123 06-18-2011 11:30 AM

Thanks for the reply,

I am having trouble editing resolv.conf:

Code:

[root@localhost /]# gedit /etc/resolv.conf
No protocol specified

(gedit:3022): Gtk-WARNING **: cannot open display: :0.0
[root@localhost /]#

and if i try it through the GUI it wont let me save....

John VV 06-18-2011 02:00 PM

then use the DEFAULT terminal test editor "nano"
Code:

su -
nano /etc/resolv.conf

unless you KNOW how to use "vi"

-- vi /etc/resolv.conf ---

testpilot123 06-21-2011 06:34 PM

Well, i got the nameserver to be at 8.8.8.8 and now i can actualy update yum,

YAY!

So now, all i need to do is update flash... i think :)

P

16pide 06-22-2011 04:41 AM

great news!
don't forget to mark the thread as solved


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