Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
Yum error while installing mysql
Results 1 to 3 of 3

Thread: Yum error while installing mysql

  1. #1
    Member 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

    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
    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

Similar Threads

  1. Problems installing MySQL++ wrapper for C++ language
    By tech291083 in forum Redhat / Fedora
    Replies: 5
    Last Post: 12-27-2010, 10:57 PM
  2. MySql Error
    By paleogryph in forum Linux - Software, Applications & Programming
    Replies: 5
    Last Post: 01-23-2006, 07:53 AM
  3. mysql access error
    By Muddafarker in forum Linux - Hardware, Networking & Security
    Replies: 2
    Last Post: 01-18-2004, 08:27 AM
  4. MySQL database creation error
    By Compunuts in forum Linux - Hardware, Networking & Security
    Replies: 6
    Last Post: 10-24-2003, 06:09 AM
  5. MySQL Error msgs
    By gmoreno in forum Announcements and Suggestions
    Replies: 4
    Last Post: 01-31-2003, 10:01 PM

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
  •