我有GitLab 7.12.2 30bffd5
。我很确定我需要更新它。
我不知道我是如何安装它的,但是它位于/opt/gitlab
中且配置在/etc/gitlab
中,所以我猜它是综合的,但是yum update
并没有更新它。
所以,在directions here之后,我跑了:curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
现在,当我运行yum命令时,我得到以下输出:
# sudo yum install gitlab-ce
Loaded plugins: fastestmirror, replace, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirrors.seas.harvard.edu
* centosplus: mirror.lug.udel.edu
* contrib: mirrors.umflint.edu
* epel: mirror.umd.edu
* extras: mirror.team-cymru.org
* ius: mirror.symnds.com
* remi: mirrors.mediatemple.net
* remi-php55: mirrors.mediatemple.net
* remi-php56: mirrors.mediatemple.net
* remi-safe: mirrors.mediatemple.net
* rpmforge: repoforge.mirror.constant.com
* updates: chicago.gaminghost.co
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 300, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 146, in main
result, resultmsgs = base.doCommands()
File "/usr/share/yum-cli/cli.py", line 440, in doCommands
return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
File "/usr/share/yum-cli/yumcommands.py", line 211, in doCommand
return base.installPkgs(extcmds)
File "/usr/share/yum-cli/cli.py", line 702, in installPkgs
self.install(pattern=arg)
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 3522, in install
mypkgs = self.pkgSack.returnPackages(patterns=pats,
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 907, in <lambda>
pkgSack = property(fget=lambda self: self._getSacks(),
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 687, in _getSacks
self.repos.populateSack(which=repos)
File "/usr/lib/python2.6/site-packages/yum/repos.py", line 324, in populateSack
sack.populate(repo, mdtype, callback, cacheonly)
File "/usr/lib/python2.6/site-packages/yum/yumRepo.py", line 187, in populate
dobj = repo_cache_function(xml, csum)
File "/usr/lib64/python2.6/site-packages/sqlitecachec.py", line 46, in getPrimary
self.repoid))
TypeError: Parsing primary.xml error: Start tag expected, '<' not found
uname -a
输出:Linux GitLab-SRV 2.6.32-504.23.4.el6.centos.plus.x86_64 #1 SMP Wed Jun 10 13:09:42 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
答案 0 :(得分:-1)
您在服务器上盲目执行远程脚本......
可以提供帮助:
yum clean metadata
否则,您必须检查哪个是损坏的文件并将其删除。