+ Reply to Thread
Results 1 to 3 of 3

Thread: Yum error while installing mysql

  1. #1
      Member omidkamangar omidkamangar's Avatar
    Join Date
    Mar 2006
    Location
    Kurdistan
    Posts
    239

    Yum error while installing mysql

    Hi,
    I am using FC6 and I am trying to install MySQL using yum. I have copied all the files in the FC6 DVD to a folder named "rpms" in the home directory of my user name, i.e
    /home/omid/rpms
    I have configured the /etc/yum.repos.d/fedora-core.repo file to point to that folder.
    Here is the contents:
    [root@localhost omid]# cat /etc/yum.repos.d/fedora-core.repo
    [core]
    name=Fedora Core $releasever – $basearch
    #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/
    #mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core-$releasever&arch=$basearch
    baseurl=file:///home/omid/rpms
    enabled=1
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

    [core-debuginfo]
    name=Fedora Core $releasever – $basearch – Debug
    #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/debug/
    #mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core-debug-$releasever&arch=$basearch
    baseurl=file:///home/omid/rpms
    enabled=0
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

    [core-source]
    name=Fedora Core $releasever – Source
    #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/source/SRPMS/
    #mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core-source-$releasever&arch=$basearch
    baseurl=file:///home/omid/rpms
    enabled=0
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
    [root@localhost omid]#
    and when I try to install MySQL I get this message.
    [root@localhost omid]# yum –disablerepo=updates –disablerepo=extras install mysql
    Loading "installonlyn" plugin
    Setting up Install Process
    Setting up repositories
    core 100% |=========================| 1.3 kB 00:00
    Reading repository metadata in from local files
    Parsing package install arguments
    Resolving Dependencies
    –> Populating transaction set with selected packages. Please wait.
    —> Downloading header for mysql to pack into transaction set.
    media://1161131669.029329%232/Fedora/RPMS/mysql-5.0.22-2.1.i386.rpm: [Errno 4] IOError: <urlopen error unknown url type: media>
    Trying other mirror.
    Error: failed to retrieve Fedora/RPMS/mysql-5.0.22-2.1.i386.rpm from core
    error was [Errno 4] IOError: <urlopen error unknown url type: media>
    [root@localhost omid]#
    Can anyone help please ?
    This will be over soon, and then I can …

  2. #2
      Associate Dark Horse
    Join Date
    Jul 2007
    Posts
    20

    Possible Solution

    Omid:

    Here is a link to a situation with the same error; I don’t know if it will help but it appears to be the identical error:

    http://www.fedoraforum.org/forum/arc…/t-133876.html

    This is the solution the user employed, with joy:

    "Problem solved:
    I had used the DVD to populate my initial FC6 mirror, including the
    repodata. When I refresh the repodata with from the mirrors, yum
    started working.
    The odd thing is that my FC5->FC6 upgrade worked fine with it, and the
    resulting FC6 system was able to run yum fine. Just the fresh install
    had problems."

    Good luck

  3. #3
      Newbie raviraj_amatya
    Join Date
    Aug 2007
    Location
    Kathmandu, Nepal
    Posts
    6

    using yum

    HI,
    1) you states that u had copied all the files from fedora DVD to /home/omid/rpms, but it may not the directory where actual .rpm packages are contained. For instance there must be a dirctory named fedora which contains tha actual .rpm files. if it is the case then you have to chage your rpository file like this

    baseurl=file:///home/omid/rpms -instead of this line u have to type following

    baseurl=file:///home/omid/rpms/fedora.

    2) if u still get the same error then u have to perform another step. u also have to remade repository database. to do this follow following step
    Code:
    # cd /home/omid/rpms
    -go to target directory
    # createrepo -v fedora 
    -fedora is the actual directory that contains .rpm files. so we have to create rpository to this directory
    # rm fedora/.olddata
    -u have to remove old repository database file
    3) when u do this. also do following before installing package

    # yum clean all
    at client side before installing package

+ Reply to Thread

Similar Threads

  1. Problem starting mysql conflicts with the RPM "mysql-5.0.27-1.fc6"
    By kamakshiganesh in forum Redhat / Fedora
    Replies: 2
    Last Post: 10-26-2007, 05:35 AM
  2. MySQL worm for Windows halted
    By genesis in forum Windows – General Topics
    Replies: 0
    Last Post: 01-28-2005, 10:53 PM
  3. MySQL Error msgs
    By gmoreno in forum Announcements and Suggestions
    Replies: 4
    Last Post: 01-31-2003, 10:01 PM
  4. MySQL Admin GUI
    By mcdougrs in forum Linux – Hardware, Networking & Security
    Replies: 5
    Last Post: 10-25-2002, 09:45 PM
  5. mysql installation instructions & permissions
    By elovkoff in forum Linux – Hardware, Networking & Security
    Replies: 2
    Last Post: 02-06-2002, 11:51 AM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts