Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to install some packages through yum where i got below error.
Code:
Loaded plugins: dellsysid, fastestmirror, rhnplugin
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 309, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 157, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 187, in getOptionsConfig
self.conf
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 665, in <lambda>
conf = property(fget=lambda self: self._getConfig(),
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 254, in _getConfig
self.plugins.run('init')
File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 179, in run
func(conduitcls(self, self.base, conf, **kwargs))
File "/usr/share/yum-plugins/rhnplugin.py", line 121, in init_hook
login_info = up2dateAuth.getLoginInfo(timeout=timeout)
File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 227, in getLoginInfo
login(timeout=timeout)
File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 194, in login
li = server.up2date.login(systemId)
File "/usr/share/rhn/up2date_client/rhnserver.py", line 63, in __call__
return rpcServer.doCall(method, *args, **kwargs)
File "/usr/share/rhn/up2date_client/rpcServer.py", line 203, in doCall
ret = method(*args, **kwargs)
File "/usr/lib64/python2.4/xmlrpclib.py", line 1096, in __call__
return self.__send(self.__name, args)
File "/usr/share/rhn/up2date_client/rpcServer.py", line 37, in _request1
ret = self._request(methodname, params)
File "/usr/lib/python2.4/site-packages/rhn/rpclib.py", line 384, in _request
self._handler, request, verbose=self._verbose)
File "/usr/lib/python2.4/site-packages/rhn/transports.py", line 187, in request
return self._process_response(fd, connection)
File "/usr/lib/python2.4/site-packages/rhn/transports.py", line 215, in _process_response
return self.parse_response(fd)
File "/usr/lib/python2.4/site-packages/rhn/transports.py", line 235, in parse_response
p.feed(response)
File "/usr/lib64/python2.4/xmlrpclib.py", line 527, in feed
self._parser.Parse(data, 0)
xml.parsers.expat.ExpatError: mismatched tag: line 158, column 2
when i do rhn_check,
Code:
[root@dev rhn]# rhn_check -vvvv
D: opening db environment /var/lib/rpm/Packages joinenv
D: opening db index /var/lib/rpm/Packages rdonly mode=0x0
D: locked db index /var/lib/rpm/Packages
D: opening db index /var/lib/rpm/Providename rdonly mode=0x0
An error has occurred:
xml.parsers.expat.ExpatError
See /var/log/up2date for more information
D: closed db index /var/lib/rpm/Providename
D: closed db index /var/lib/rpm/Packages
D: closed db environment /var/lib/rpm/Packages
D: May free Score board((nil))
I have done some research on internet where itseems like communication between client and RHN serverbut nowhere the fix has been mentioned.
Fols,
I am trying to install some packages through yum where i got below error.
Code:
xml.parsers.expat.ExpatError: mismatched tag: line 158, column 2
when i do rhn_check,
Code:
[root@dev rhn]# rhn_check -vvvv
D: opening db environment /var/lib/rpm/Packages joinenv
An error has occurred:
xml.parsers.expat.ExpatError
See /var/log/up2date for more information
I have done some research on internet where itseems like communication between client and RHN serverbut nowhere the fix has been mentioned.Could someone shed light on this please?
Well, the error tells you to check the log for more information...DID YOU? What did it say? And since you're having a problem with a registered RHEL system, why don't you call Red Hat support for assistance???
The log file should give you hints...we don't know what it says unless you post it.
[Tue Aug 30 14:02:10 2016] up2date logging into up2date server
[Tue Aug 30 14:02:22 2016] up2date
Traceback (most recent call last):
File "/usr/sbin/rhn_check", line 396, in ?
cli.run()
File "/usr/share/rhn/up2date_client/rhncli.py", line 96, in run
sys.exit(self.main() or 0)
File "/usr/sbin/rhn_check", line 91, in main
self.__run_remote_actions()
File "/usr/sbin/rhn_check", line 185, in __run_remote_actions
action = self.__get_action(status_report)
File "/usr/sbin/rhn_check", line 103, in __get_action
ACTION_VERSION, status_report)
File "/usr/lib64/python2.4/xmlrpclib.py", line 1096, in __call__
return self.__send(self.__name, args)
File "/usr/share/rhn/up2date_client/rpcServer.py", line 37, in _request1
ret = self._request(methodname, params)
File "/usr/lib/python2.4/site-packages/rhn/rpclib.py", line 384, in _request
self._handler, request, verbose=self._verbose)
File "/usr/lib/python2.4/site-packages/rhn/transports.py", line 187, in request
return self._process_response(fd, connection)
File "/usr/lib/python2.4/site-packages/rhn/transports.py", line 215, in _process_response
return self.parse_response(fd)
File "/usr/lib/python2.4/site-packages/rhn/transports.py", line 235, in parse_response
p.feed(response)
File "/usr/lib64/python2.4/xmlrpclib.py", line 527, in feed
self._parser.Parse(data, 0)
xml.parsers.expat.ExpatError: mismatched tag: line 158, column 2
Sorry, but you're not making ANY sense at all. CentOS is not, and never was, supported by Red Hat. You posted RHEL commands, and didn't provide details. You didn't post the log file contents (despite what you said), but posted the output of the "up2date" command.
Either ask a CLEAR question, and provide details, or there isn't anything we can do to help you.
Okay sorry for posting RHEL command. I hope yum will be considered as centos command. when I give "yum repolist"
Quote:
[root@dev ~]# yum repolist
Loaded plugins: dellsysid, fastestmirror, rhnplugin
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 309, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 157, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 187, in getOptionsConfig
self.conf
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 665, in <lambda>
conf = property(fget=lambda self: self._getConfig(),
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 254, in _getConfig
self.plugins.run('init')
File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 179, in run
func(conduitcls(self, self.base, conf, **kwargs))
File "/usr/share/yum-plugins/rhnplugin.py", line 121, in init_hook
login_info = up2dateAuth.getLoginInfo(timeout=timeout)
File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 227, in getLoginInfo
login(timeout=timeout)
File "/usr/share/rhn/up2date_client/up2dateAuth.py", line 194, in login
li = server.up2date.login(systemId)
File "/usr/share/rhn/up2date_client/rhnserver.py", line 63, in __call__
return rpcServer.doCall(method, *args, **kwargs)
File "/usr/share/rhn/up2date_client/rpcServer.py", line 203, in doCall
ret = method(*args, **kwargs)
File "/usr/lib64/python2.4/xmlrpclib.py", line 1096, in __call__
return self.__send(self.__name, args)
File "/usr/share/rhn/up2date_client/rpcServer.py", line 37, in _request1
ret = self._request(methodname, params)
File "/usr/lib/python2.4/site-packages/rhn/rpclib.py", line 384, in _request
self._handler, request, verbose=self._verbose)
File "/usr/lib/python2.4/site-packages/rhn/transports.py", line 187, in request
return self._process_response(fd, connection)
File "/usr/lib/python2.4/site-packages/rhn/transports.py", line 215, in _process_response
return self.parse_response(fd)
File "/usr/lib/python2.4/site-packages/rhn/transports.py", line 235, in parse_response
p.feed(response)
File "/usr/lib64/python2.4/xmlrpclib.py", line 527, in feed
self._parser.Parse(data, 0)
xml.parsers.expat.ExpatError: mismatched tag: line 158, column 2
I am getting above messages. You have mentioned , i didnt post log file content. If you see the error message,
Quote:
[root@dev rhn]# rhn_check -vvvv
D: opening db environment /var/lib/rpm/Packages joinenv
An error has occurred:
xml.parsers.expat.ExpatError
See /var/log/up2date for more information
I went into /var/log/up2date folder and posted the output. So you mean thats not the log file content you were referring? if so i am very well happy to provide the log file which you need.
Apologize again for not asking clear question before. Let me know if you need more details.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.