[Yum] FC6: can't install anything with yum

Tim Lauridsen tla-ml at rasmil.dk
Sat Oct 28 06:52:04 UTC 2006


Kevin Layer wrote:
> I mirror the FC6 repos from kernel.org.  I successfully upgraded a
> machine running FC5 to FC6 with it.  I can install packages on that
> system with yum fine.
>
> I installed a fresh copy of FC6 on another machine.  After the
> installed, this is the first thing I did:
>
> [root at relay cache]# yum install emacs
> Loading "installonlyn" plugin
> Setting up Install Process
> Setting up repositories
> core                      100% |=========================| 1.3 kB    00:00     
> Reading repository metadata in from local files
> primary.xml.gz            100% |=========================| 772 kB    00:00     
> ################################################## 2242/2242
> Parsing package install arguments
> Resolving Dependencies
> --> Populating transaction set with selected packages. Please wait.
> ---> Downloading header for emacs to pack into transaction set.
> media://1161131669.029329%233/Fedora/RPMS/emacs-21.4-17.i386.rpm: [Errno 4] IOError: <urlopen error unknown url type: media>
> Trying other mirror.
> Error: failed to retrieve Fedora/RPMS/emacs-21.4-17.i386.rpm from core
> error was [Errno 4] IOError: <urlopen error unknown url type: media>
> [root at relay cache]# 
>
>
> Poking around a little more, I added a `print' statement below to
> /usr/lib/python2.4/site-packages/yum/sqlitesack.py:
>
> class YumAvailablePackageSqlite(YumAvailablePackage):
> ...        
>     def returnSimple(self, varname):
> ...
>             c.execute(query)
>             r = c.fetchone()
>             self.simple[varname] = r[0]
>             if varname == 'basepath':
>                 print "db query for %s returned %s\n" % (varname, r[0])
>
> it prints this:
>
> [root at relay ~]# yum install amanda
> Loading "installonlyn" plugin
> Setting up Install Process
> Setting up repositories
> Reading repository metadata in from local files
> Parsing package install arguments
> Resolving Dependencies
> --> Populating transaction set with selected packages. Please wait.
> ---> Downloading header for amanda to pack into transaction set.
> db query for basepath returned media://1161131669.029329#4
>
> media://1161131669.029329%234/Fedora/RPMS/amanda-2.5.0p2-4.i386.rpm: [Errno 4] IOError: <urlopen error unknown url type: media>
> Trying other mirror.
> Error: failed to retrieve Fedora/RPMS/amanda-2.5.0p2-4.i386.rpm from core
> error was [Errno 4] IOError: <urlopen error unknown url type: media>
> [root at relay ~]# 
>
>
> So, in the bad case, it's getting the media://... out of the database.
>
> How do I verify that the sqlite database is OK?  Can it be rebuilt?
>
> I've done "yum clean all" and uninstalled yum (actually, anything with
> yum in the name) and reinstalled (with rpm).  Same deal.
>
> The thought of going back to just rpm is a deal killer for me.
>
> Thanks.
>
> Kevin
> _______________________________________________
> Yum mailing list
> Yum at lists.dulug.duke.edu
> https://lists.dulug.duke.edu/mailman/listinfo/yum
>   
The media:// it something used by anaconda.

try running: (as root)

yum clean all

yum install emacs

Tim



More information about the Yum mailing list