yum 安装时提示 manged by the "local" yum plugin |
发表者:admin分类:应用服务2022-12-09 12:13:07 阅读[421] |
yum 安装时提示 manged by the "local" yum plugin
[root@server252 ~]# yum install libssl.so
已加载插件:aliases, auto-update-debuginfo, axelget, changelog, copr, dellsysid, fastestmirror, filter-data, fs-snapshot, keys, langpacks, list-data,
: local, merge-conf, ovl, post-transaction-actions, pre-transaction-actions, priorities, protectbase, ps, remove-with-leaves, rpm-warm-
: cache, show-leaves, tmprepo, tsflags, upgrade-helper, verify, versionlock
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 375, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 184, in main
result, resultmsgs = base.doCommands()
File "/usr/share/yum-cli/cli.py", line 585, in doCommands
return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
File "/usr/share/yum-cli/yumcommands.py", line 446, in doCommand
return base.installPkgs(extcmds, basecmd=basecmd)
File "/usr/share/yum-cli/cli.py", line 1017, in installPkgs
txmbrs = self.install(pattern=arg)
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 4848, in install
mypkgs = self.pkgSack.returnPackages(patterns=pats,
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1075, in <lambda>
pkgSack = property(fget=lambda self: self._getSacks(),
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 778, in _getSacks
self.repos.populateSack(which=repos)
File "/usr/lib/python2.7/site-packages/yum/repos.py", line 347, 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] 没有那个文件或目录: '/var/cache/yum/x86_64/7/_local/repomd.xml'
查看有个_local.repo 源,删除文件,还会生成。
[root@server252 yum.repos.d]# ls
CentOS-Base.repo docker-ce.repo epel.repo epel-testing.repo _local.repo
[root@server252 yum.repos.d]# cat _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
根据提示是一个rpm包管理的,删除相关软件包。
[root@server252 yum.repos.d]# yum -y remove yum-plugin-local
6.11. yum-plugin-local
This means that any package that you downloaded and installed with yum yum will always exist,
even if it is removed from the original repository, therefore, it can be uninstalled, reinstalled, downgraded, etc.
6.11.1. Configuration
/etc/yum.repos.d/_local.repo
/etc/yum/pluginconf.d/local.conf
/etc/yum/pluginconf.d/local.conf
[main]
enabled=1
# Createreop options. See man createrepo
[createrepo]
# If you want to speedup createrepo with the --cachedir option. Eg.
# cachedir = /tmp/createrepo-local-plugin-cachedir
# If you need to override the checksum with the --checksum option. Eg.
# checksum = sha
quiet = true
verbose = false
skip_stat = false
unique_md_filenames = true
update = true
databases = true
enabled = 0|1
- Enable extension at a general level.
quiet = true|false
- Silent.
verbose = true|false
- Report many details.
skip_stat = true|false
- Avoid file/directory verification with
stat
. unique_md_filenames = true|false
- Adds file checksum in metadata file name.
update = true|false
- If metadata exists in the directory and the rpm has not changed since metadata was created, it will reuse these metadata when set to true instead of recreate them.
databases = true|false
- It creates the sqlite yum database.
/etc/yum.repos.d/_local.repo
[_local]
name=Automatic local repo. (managed 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
转载请标明出处【yum 安装时提示 manged by the "local" yum plugin】。
《www.micoder.cc》
虚拟化云计算,系统运维,安全技术服务.
Tags: | [阅读全文...] |
最新评论