2017-12-11 13:12 UTC

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0008914CentOS-7yumpublic2017-11-03 08:30
Reporterfgarcia 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusnewResolutionopen 
PlatformOSOS Version7
Product Version 
Target VersionFixed in Version 
Summary0008914: [abrt] yum: axelget.py:393:prereposetup_hook:OSError: [Errno 2] No such file or directory: '/var/cache/yum/x86_64/7/_local/re...
DescriptionDescription of problem:
just trying to install yum-gui, but I didn't find and then now it is showin gthis error and I cannnot run yum update

Version-Release number of selected component:
yum-3.4.3-125.el7.centos

Truncated backtrace:
axelget.py:393:prereposetup_hook:OSError: [Errno 2] No such file or directory: '/var/cache/yum/x86_64/7/_local/repomd.xml'

Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 367, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 174, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 571, in doCommands
    return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
  File "/usr/share/yum-cli/yumcommands.py", line 1040, in doCommand
    self._grp_setup_doCommand(base)
  File "/usr/share/yum-cli/yumcommands.py", line 930, in _grp_setup_doCommand
    base.doGroupSetup()
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 888, in doGroupSetup
    return self._getGroups()
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 918, in _getGroups
    self.pkgSack
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1079, in <lambda>
    pkgSack = property(fget=lambda self: self._getSacks(),
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 784, in _getSacks
    self.repos.populateSack(which=repos)
  File "/usr/lib/python2.7/site-packages/yum/repos.py", line 344, in populateSack
    self.doSetup()
  File "/usr/lib/python2.7/site-packages/yum/repos.py", line 122, in doSetup
    self.ayum.plugins.run('prereposetup')
  File "/usr/lib/python2.7/site-packages/yum/plugins.py", line 188, in run
    func(conduitcls(self, self.base, conf, **kwargs))
  File "/usr/lib/yum-plugins/axelget.py", line 393, in prereposetup_hook
    os.utime(localMDFile, None)
OSError: [Errno 2] No such file or directory: '/var/cache/yum/x86_64/7/_local/repomd.xml'

Local variables in innermost frame:
conduit: <yum.plugins.PreRepoSetupPluginConduit instance at 0x1131d40>
localMDFile: '/var/cache/yum/x86_64/7/_local/repomd.xml'
repos: <yum.repos.RepoStorage instance at 0x1114f80>
mirrors: ['file:/var/lib/yum/plugins/local/']
need_download_mdFile: True
repo: <yum.yumRepo.YumRepository object at 0x142bd50>
fastest: 'file:/var/lib/yum/plugins/local/'
conf: <yum.config.YumConf object at 0x1153e50>
Additional Informationreporter: libreport-2.1.11
cmdline: /usr/bin/python /usr/bin/yum grouplist
dso_list: yum-axelget-1.0.5.1-1.20140522gitad6fb3e.el7.noarch
executable: /usr/bin/yum
kernel: 3.10.0-229.4.2.el7.x86_64
runlevel: N 5
type: Python
uid: 0
TagsNo tags attached.
abrt_hash2eb207783953fd523a93936f3feb45a68345c20b
URLhttps://retrace.fedoraproject.org/faf/reports/bthash/95a9775deac0a057bc128bc851e95d3aee4c73d2
Attached Files
  • ? file icon backtrace (2,259 bytes) 2015-06-16 14:16 -
    axelget.py:393:prereposetup_hook:OSError: [Errno 2] No such file or directory: '/var/cache/yum/x86_64/7/_local/repomd.xml'
    
    Traceback (most recent call last):
      File "/usr/bin/yum", line 29, in <module>
        yummain.user_main(sys.argv[1:], exit_code=True)
      File "/usr/share/yum-cli/yummain.py", line 367, in user_main
        errcode = main(args)
      File "/usr/share/yum-cli/yummain.py", line 174, in main
        result, resultmsgs = base.doCommands()
      File "/usr/share/yum-cli/cli.py", line 571, in doCommands
        return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
      File "/usr/share/yum-cli/yumcommands.py", line 1040, in doCommand
        self._grp_setup_doCommand(base)
      File "/usr/share/yum-cli/yumcommands.py", line 930, in _grp_setup_doCommand
        base.doGroupSetup()
      File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 888, in doGroupSetup
        return self._getGroups()
      File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 918, in _getGroups
        self.pkgSack
      File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1079, in <lambda>
        pkgSack = property(fget=lambda self: self._getSacks(),
      File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 784, in _getSacks
        self.repos.populateSack(which=repos)
      File "/usr/lib/python2.7/site-packages/yum/repos.py", line 344, in populateSack
        self.doSetup()
      File "/usr/lib/python2.7/site-packages/yum/repos.py", line 122, in doSetup
        self.ayum.plugins.run('prereposetup')
      File "/usr/lib/python2.7/site-packages/yum/plugins.py", line 188, in run
        func(conduitcls(self, self.base, conf, **kwargs))
      File "/usr/lib/yum-plugins/axelget.py", line 393, in prereposetup_hook
        os.utime(localMDFile, None)
    OSError: [Errno 2] No such file or directory: '/var/cache/yum/x86_64/7/_local/repomd.xml'
    
    Local variables in innermost frame:
    conduit: <yum.plugins.PreRepoSetupPluginConduit instance at 0x1131d40>
    localMDFile: '/var/cache/yum/x86_64/7/_local/repomd.xml'
    repos: <yum.repos.RepoStorage instance at 0x1114f80>
    mirrors: ['file:/var/lib/yum/plugins/local/']
    need_download_mdFile: True
    repo: <yum.yumRepo.YumRepository object at 0x142bd50>
    fastest: 'file:/var/lib/yum/plugins/local/'
    conf: <yum.config.YumConf object at 0x1153e50>
    
    ? file icon backtrace (2,259 bytes) 2015-06-16 14:16 +
  • ? file icon environ (4,170 bytes) 2015-06-16 14:16 -
    SSH_ASKPASS=/usr/bin/ksshaskpass
    SYNOPSYS=/home/fgarcia/synopsys/J_2014.09-SP2
    HOME=/root
    XCURSOR_SIZE=0
    LESSOPEN=||/usr/bin/lesspipe.sh %s
    QT_IM_MODULE=xim
    LOGNAME=fgarcia
    USER=fgarcia
    GNOME_KEYRING_CONTROL=/run/user/1000/keyring-l5QuMC
    XDG_VTNR=1
    QTDIR=/usr/lib64/qt-3.3
    GTK_IM_MODULE=gtk-im-context-simple
    KDE_SESSION_VERSION=4
    KDE_FULL_SESSION=true
    LANG=en_US.UTF-8
    QTLIB=/usr/lib64/qt-3.3/lib
    TERM=xterm-256color
    SHELL=/bin/bash
    LM_LICENSE_FILE=27000@pc130.hip.helsinki.fi
    XAUTHORITY=/root/.xauthftrUaI
    COLORFGBG=15;0
    SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/6650,unix/unix:/tmp/.ICE-unix/6650
    QTINC=/usr/lib64/qt-3.3/include
    XDG_SESSION_ID=6
    KONSOLE_PROFILE_NAME=Shell
    HISTSIZE=1000
    KONSOLE_DBUS_WINDOW=/Windows/1
    WINDOWID=67108891
    EDITOR=/bin/nano -w
    QT_PLUGIN_PATH=/usr/lib64/kde4/plugins:/usr/lib/kde4/plugins:/home/fgarcia/.kde/lib64/kde4/plugins/:/usr/lib64/kde4/plugins/
    IMSETTINGS_INTEGRATE_DESKTOP=yes
    SSH_AGENT_PID=6524
    GDMSESSION=1-kde-plasma-standard
    KONSOLE_DBUS_SESSION=/Sessions/1
    USERNAME=fgarcia
    IMSETTINGS_MODULE=none
    KDE_SESSION_UID=1000
    XDG_RUNTIME_DIR=/run/user/1000
    PROFILEHOME=
    SSH_AUTH_SOCK=/tmp/ssh-bps9EQHJjVdT/agent.6397
    KONSOLE_DBUS_SERVICE=:1.66
    STDB=/home/fgarcia/synopsys/TCAD
    PATH=/usr/sue/sbin:/home/fgarcia/scripts:/usr/sue/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/home/fgarcia/.local/bin:/home/fgarcia/bin:/home/fgarcia/synopsys/J_2014.09-SP2/bin:/home/fgarcia/synopsys/J_2014.09-SP2/tcad
    XMODIFIERS=@im=none
    GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/fgarcia/.gtkrc-2.0:/home/fgarcia/.gtkrc-2.0-kde4:/home/fgarcia/.kde/share/config/gtkrc-2.0
    MAIL=/var/spool/mail/fgarcia
    QT_GRAPHICSSYSTEM_CHECKED=1
    XDG_CURRENT_DESKTOP=KDE
    GS_LIB=
    SHELL_SESSION_ID=00976d230d1940009db3fad4f691b223
    WINDOWPATH=1
    DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-0PdAhXK4Aa,guid=0379ff48c2ffc4c0d25ed1625580263c
    KDEDIRS=/usr
    DESKTOP_SESSION=1-kde-plasma-standard
    _=/usr/bin/yum
    DISPLAY=:0
    GNOME_KEYRING_PID=6393
    XCURSOR_THEME=Adwaita
    XDG_SEAT=seat0
    HOSTNAME=localhost.localdomain
    GDM_LANG=en_US.UTF-8
    LANGUAGE=
    HISTCONTROL=ignoredups
    SHLVL=4
    PWD=/home/fgarcia
    CASTOR_HOME=/castor/cern.ch/user/f/fgarcia
    GTK_RC_FILES=/etc/gtk/gtkrc:/home/fgarcia/.gtkrc:/home/fgarcia/.kde/share/config/gtkrc
    SNPSLMD_LICENSE_FILE=27000@pc130.hip.helsinki.fi
    XDG_MENU_PREFIX=kde4-
    LS_COLORS=rs=0:di=38;5;27:ln=38;5;51:mh=44;38;5;15:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=05;48;5;232;38;5;15:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;34:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.Z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.axv=38;5;13:*.anx=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.axa=38;5;45:*.oga=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:
    XDG_DATA_DIRS=/usr/share:/usr/share/kde-settings/kde-profile/default/share:/usr/local/share:/usr/share
    KDE_MULTIHEAD=false
    
    ? file icon environ (4,170 bytes) 2015-06-16 14:16 +
  • ? file icon machineid (135 bytes) 2015-06-16 14:16 -
    systemd=b76f00cbbac2429695187b6052c1c489
    sosreport_uploader-dmidecode=8410217b3c3e5c5414aaa53c4650c3a901775d431ff31fe38f82bf0ed5f7a94c
    
    ? file icon machineid (135 bytes) 2015-06-16 14:16 +

-Relationships
+Relationships

-Notes

~0023722

Shouvik7 (reporter)

Another user experienced a similar problem:

#yum install zip rar 7zip 7z

And yum crashed

reporter: libreport-2.1.11
cmdline: /usr/bin/python /bin/yum install zip rar 7zip 7z
dso_list: yum-axelget-1.0.5.1-1.20140522gitad6fb3e.el7.noarch
executable: /bin/yum
kernel: 3.10.0-229.el7.x86_64
package: yum-3.4.3-125.el7.centos
reason: axelget.py:393:prereposetup_hook:OSError: [Errno 2] No such file or directory: '/var/cache/yum/x86_64/7/_local/repomd.xml'
runlevel: N 5
type: Python
uid: 0

~0025872

tqviet (reporter)

Another user experienced a similar problem:

Everything was still fine until I typed:

# yum install yum*

The problem occured and I don't know how to recover the yum as before.
Please let me know how to recuse the yum command for my CentOS system (7.5).
Thank you in advances.

PS:
My email: viet204@gmail.com

reporter: libreport-2.1.11
cmdline: /usr/bin/python /usr/bin/yum update
dso_list: yum-axelget-1.0.5.1-1.20140522gitad6fb3e.el7.noarch
executable: /usr/bin/yum
kernel: 3.10.0-123.el7.x86_64
package: yum-3.4.3-132.el7.centos.0.1
reason: axelget.py:393:prereposetup_hook:OSError: [Errno 2] No such file or directory: '/var/cache/yum/x86_64/7/_local/repomd.xml'
runlevel: N 5
type: Python
uid: 0

~0025873

tqviet (reporter)

Hi everyone,

Just want to inform you guys that I have fixed my problem above. That is:

reason: axelget.py:393:prereposetup_hook:OSError: [Errno 2] No such file or directory: '/var/cache/yum/x86_64/7/_local/repomd.xml'

The true reason is this file: /etc/yum.repos.d/_local.repo

Just turn it off, e.g. by changing its name, for example in my case:

mv /etc/yum.repos.d/_local.repo /etc/yum.repos.d/_local.repo.bak

So far everything is fine for me. The yum returns! :D

Viet.

~0025874

tqviet (reporter)

Actually, if we changes the name, we cannot solve the problem in next time using "yum" commnad.

I have fixed the problem as follows: let the yum do not to use /etc/yum.repos.d/_local.repo, i.e. set "enabled=0" in this file. And I can not see the error again :)

====================

BEFORE revision:

[root@tqviet src]# cat /etc/yum.repos.d/_local.repo

[_local]
name=Automatic local repo. (manged by the "local" yum plugin).
baseurl=file:/var/lib/yum/plugins/local
enabled=1
gpgcheck=true
# Metadata expire could be set to "never" because the local plugin will
# automatically cause a cache refresh when new packages are added. However
# it's really cheap to check, and this way people can dump stuff in whenever
# and it never gets out of sync. for long.
metadata_expire=1h
# Make cost smaller, as we know it's "local". If you really want to be sure,
# you can do this ... but the name will do pretty much the same thing, and that
# way we can also see the other packages (with: --showduplicates list).
# cost=500

====================
AFTER revision:

[root@tqviet src]# cat /etc/yum.repos.d/_local.repo

[_local]
name=Automatic local repo. (manged by the "local" yum plugin).
baseurl=file:/var/lib/yum/plugins/local
enabled=0
gpgcheck=true
# Metadata expire could be set to "never" because the local plugin will
# automatically cause a cache refresh when new packages are added. However
# it's really cheap to check, and this way people can dump stuff in whenever
# and it never gets out of sync. for long.
metadata_expire=1h
# Make cost smaller, as we know it's "local". If you really want to be sure,
# you can do this ... but the name will do pretty much the same thing, and that
# way we can also see the other packages (with: --showduplicates list).
# cost=500

~0026142

stgnet (reporter)

Another user experienced a similar problem:

something that got installed by yum mangled yum itself.

Here's the last few entries from yum.log:

Mar 26 17:09:19 Installed: yum-axelget-1.0.5.1-1.20140522gitad6fb3e.el7.noarch
Mar 26 17:09:40 Installed: yum-cron-3.4.3-132.el7.centos.0.1.noarch
Mar 26 17:10:01 Installed: yum-NetworkManager-dispatcher-1.1.31-34.el7.noarch
Mar 26 17:10:21 Installed: yum-plugin-aliases-1.1.31-34.el7.noarch
Mar 26 17:10:41 Installed: yum-plugin-auto-update-debug-info-1.1.31-34.el7.noarch
Mar 26 17:11:02 Installed: yum-plugin-changelog-1.1.31-34.el7.noarch
Mar 26 17:11:23 Installed: yum-plugin-filter-data-1.1.31-34.el7.noarch
Mar 26 17:11:44 Installed: yum-plugin-fs-snapshot-1.1.31-34.el7.noarch
Mar 26 17:12:06 Installed: yum-plugin-keys-1.1.31-34.el7.noarch
Mar 26 17:12:27 Installed: yum-plugin-list-data-1.1.31-34.el7.noarch
Mar 26 17:12:48 Installed: yum-plugin-local-1.1.31-34.el7.noarch
Mar 26 17:13:10 Installed: yum-plugin-merge-conf-1.1.31-34.el7.noarch

reporter: libreport-2.1.11
cmdline: /usr/bin/python /bin/yum update
dso_list: yum-axelget-1.0.5.1-1.20140522gitad6fb3e.el7.noarch
executable: /bin/yum
kernel: 3.10.0-327.10.1.el7.x86_64
package: yum-3.4.3-132.el7.centos.0.1
reason: axelget.py:393:prereposetup_hook:OSError: [Errno 2] No such file or directory: '/var/cache/yum/x86_64/7/_local/repomd.xml'
runlevel: N 5
type: Python
uid: 0

~0030519

Mudit Singal (reporter)

Another user experienced a similar problem:

disabling " _local.repo " seems to avoid the problem. I did " sudo yum clean all " followed by " sudo rm -rf /var/cache/yum " before updating system

reporter: libreport-2.1.11.1
cmdline: /usr/bin/python /bin/yum distro-sync
dso_list: yum-axelget-1.0.5.1-1.20140522gitad6fb3e.el7.noarch
event_log: 2017-11-03-13:55:53> ('report_uReport' completed successfully)
executable: /bin/yum
kernel: 3.10.0-693.5.2.el7.x86_64
package: yum-3.4.3-154.el7.centos
pkg_fingerprint: 24C6 A8A7 F4A8 0EB5
pkg_vendor: CentOS
reason: axelget.py:393:prereposetup_hook:OSError: [Errno 2] No such file or directory: '/var/cache/yum/x86_64/7/_local/repomd.xml'
reproducible: The problem is reproducible
runlevel: N 5
type: Python
uid: 0
+Notes

-Issue History
Date Modified Username Field Change
2015-06-16 14:15 fgarcia New Issue
2015-06-16 14:16 fgarcia File Added: backtrace
2015-06-16 14:16 fgarcia File Added: environ
2015-06-16 14:16 fgarcia File Added: machineid
2015-07-27 05:11 Shouvik7 Note Added: 0023722
2016-02-28 10:34 tqviet Note Added: 0025872
2016-02-28 12:40 tqviet Note Added: 0025873
2016-02-28 12:49 tqviet Note Added: 0025874
2016-03-28 14:23 stgnet Note Added: 0026142
2017-11-03 08:30 Mudit Singal Note Added: 0030519
+Issue History