LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Yum error after yum update and reboot (https://www.linuxquestions.org/questions/linux-newbie-8/yum-error-after-yum-update-and-reboot-4175468472/)

jonaskellens 07-04-2013 08:57 AM

Yum error after yum update and reboot
 
Hello,

this is the error I get when I want to use yum (Fedora 16 on Acer Aspire One netbook) :

[root@aspireone jonas]# yum update
Loaded plugins: langpacks, presto, refresh-packagekit
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 321, 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 485, in doCommands
return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
File "/usr/share/yum-cli/yumcommands.py", line 405, in doCommand
return base.updatePkgs(extcmds, update_to=(basecmd == 'update-to'))
File "/usr/share/yum-cli/cli.py", line 878, in updatePkgs
self.update()
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 4351, in update
updates = self.up.getUpdatesTuples()
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1022, in <lambda>
up = property(fget=lambda self: self._getUpdates(),
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 827, in _getUpdates
self._up = rpmUtils.updates.Updates(self.rpmdb.simplePkgList(), self.pkgSack.simplePkgList())
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1003, in <lambda>
pkgSack = property(fget=lambda self: self._getSacks(),
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 767, in _getSacks
self.repos.populateSack(which=repos)
File "/usr/lib/python2.7/site-packages/yum/repos.py", line 265, in populateSack
self.doSetup()
File "/usr/lib/python2.7/site-packages/yum/repos.py", line 92, in doSetup
self.ayum.plugins.run('postreposetup')
File "/usr/lib/python2.7/site-packages/yum/plugins.py", line 187, in run
func(conduitcls(self, self.base, conf, **kwargs))
File "/usr/lib/yum-plugins/langpacks.py", line 79, in postreposetup_hook
for event, elem in iterparse(infile):
File "<string>", line 107, in next
cElementTree.ParseError: no element found: line 1, column 0

John VV 07-04-2013 02:24 PM

Seeing as Fedora 16 is past it's End Of Life there have been NO updates for the past 5 months
-- there is nothing to update

this looks like a Python error
did you by change replace the old version of python ( the version in the old fedora 16 repo IS REQUIRED !!!! for yum to work) ,with a newer version ?

As in bypassing yum to install a different version of Python

with Fedora 19 now out

Time to upgrade

back up important data
and reformat the drives ( ext4 ,or LVM using the f19 installer )and do a new clean install using Fedora 19

jonaskellens 07-04-2013 04:26 PM

This is a clean install on a Acer Aspire One netbook.

Fedora 17, 18 and 19 don't work on this netbook.

I just did a clean install, and then a yum update.

I did do nothing with Python or anything else...

gdizzle 07-04-2013 07:22 PM

Have you tried removing yum and re-installing it from the Fedora DVD/ISO?

John VV 07-04-2013 07:33 PM

Quote:


Fedora 17, 18 and 19 don't work on this netbook.
just how little ram is in this ?

it is VERY advisable NOT to run and use a unsupported operating system

You might be able to install lxde on this netbook
if it is to old it will not be able to run Gnome3
Gnome 3 requires 3d hardware


fedora 19 with a lightweight DE might work
http://spins.fedoraproject.org/
xfce or lxde might work
or
CentOS 6.4
It is still using Gnome 2

jonaskellens 07-09-2013 07:56 AM

Quote:

Originally Posted by gdizzle (Post 4984408)
Have you tried removing yum and re-installing it from the Fedora DVD/ISO?

Can I install yum from an rpm-package ?

gdizzle 07-09-2013 05:07 PM

See for yourself:

Code:

rpm -qa | grep -i yum

John VV 07-09-2013 05:13 PM

Can I install yum from an rpm-package ?

on fedora 16
why bother
there are and NEVER will be any more updates

the ones you installed 5 months ago were the VERY LAST

Ztcoracat 07-09-2013 11:49 PM

Quote:

Fedora 17, 18 and 19 don't work on this netbook.
Have you tried to install 17, 18 or 19?
If so; what happened?

Like our Guru: John said; it is not wise to run an un-supported OS:-

Is this your netbook?
http://www.notebookcheck.net/Review-...k.73534.0.html

gdizzle 07-10-2013 12:14 AM

Can someone please define this "un-supported" OS definition, yes I understand it does not have the latest security patches / bugs related to the system and would have more problems as it's not the latest, however at the end of the day we come to this forum for support, or we support it ourselves.

These are not PAID supported systems unless I am missing something?

He is clearly running Fedora 16 not 18 because he has an old system, and is aware that it's end of life, however he just wants to try to get his system working?

Do we need another person to chime in and let us all know it's unsupported when we are the support system?

Ztcoracat 07-10-2013 12:35 AM

Quote:

Originally Posted by gdizzle (Post 4987470)
Can someone please define this "un-supported" OS definition, yes I understand it does not have the latest security patches / bugs related to the system and would have more problems as it's not the latest, however at the end of the day we come to this forum for support, or we support it ourselves.

These are not PAID supported systems unless I am missing something?

He is clearly running Fedora 16 not 18 because he has an old system, and is aware that it's end of life, however he just wants to try to get his system working?

Do we need another person to chime in and let us all know it's unsupported when we are the support system?

http://www.uni.edu/resnet/content/un...rating-systems

What evidence do you have to support that the Acer Aspire One Netbook is old?

Even I don't know that the one I found in the link is the one that OP has in his/her home or office:-


http://www.uni.edu/resnet/content/un...rating-systems

gdizzle 07-10-2013 01:01 AM

Quote:

What evidence do you have to support that the Acer Aspire One Netbook is old?
Well there have been multiple posts to upgrade his system to the latest Fedora so I will pay that, your right it might not be the system, it could be something else so I apologize for my assumption.

However, it's not a paid supported system, so even though it's outdated and not "supported" system, at the end of the day the community is the support if not the enduser itself.

So the understanding of a supported system is still a grey area, when you could have the latest system, which is supported, however we rely on each other as the support and if nobody replied to assist the problem then it's unsupported yet somehow supported.

So there is no real guarantee of support hence why there are multiple systems with multiple outdated versions and everyone has a stab to get it working. If this was the case I would just go from thread to thread saying unsupported.

jonaskellens 07-10-2013 01:28 AM

Fedora 18 gave me black screen after I start up the installation process.

Fedora 17 gave me black screen after I start up the installation process.

Fedora 16 continued normally...

I use KDE because I know Gnome does not work properly or at all.

I just want a working Fedora version. Whether it has the latest updates is not so important. Although I might have to change my opinion.

I need to install "javaw".

Ztcoracat 07-10-2013 01:41 AM

Because The Fedora Project no longer supports fc16 that makes it practically impossible for OP to have what he needs to get the netbook updated and get the commandline utility doing it's job again.

I'm not sure if installing yum is the answer: but;
Here is the tar for 'yum'
http://yum.baseurl.org/


If it is an older computer older hardware can be very hard to find drivers for.

The fact that FC17 and FC18 both gave you a black screen after the installation may be an indication that the graphics card might be on it's way out. (My old laptop kept giving me a black screen at bootup after fresh install's and would lock up)

Quote:

I use KDE because I know Gnome does not work properly or at all.
Gnome (especially Ubuntu and Xubuntu) is heavy for a DE but KDE if I am not mistaken is considerably lighter.

You can try installing yum but I don't know if that's the answer

Here's 32-bit JAVA
http://www.java.com/en/download/help/linux_install.xml

And here's 64-bit JAVA....not sure which you needed as I didn't see your system's architecture-
http://www.java.com/en/download/help...64_install.xml

John VV 07-10-2013 08:12 PM

Quote:

Fedora 18 gave me black screen after I start up the installation process.

Fedora 17 gave me black screen after I start up the installation process.
without seeing the xorg log for fedora 17 or 18
this looks like the normal everyday vga / graphics issues that fedora is having

A bug that can be fixed with an edit to the bootline

also without knowing the specs of this "netbook" it is hard to say

However
KDE4 and Gnome3 NEED A LOT of system ram at least 1 gig and a recommended 2 gig RAM as a minimum ( 4 to 8 gig is a good start)

a "netbook" by definition is SMALL and has VERY LOW amount of resources , is considered an "Appliance" like a toaster .
and it is primarily meant for reading web pages and playing "MineSweeper"

it NEEDS to have a "LightWeight" distro installed
one designed for a "netbook"

a current OS like Mint lxde ( using the lxde desktop) might be a good choice
-- this is only a guess
I do not know the amount of RAM
nor what the cpu is , or if it has a built in gpu

Fedora is a Research and Development distro
and one that is VERY VERY fast passed
( if you thing firefox is moving way too fast , that is nothing compared fedora )

Quote:

I use KDE because I know Gnome does not work properly or at all.
gnome3 in fedora 18 and the current fedora 19 works G R E A T
-- i just dislike gnome3 with a passion
but is works and a lot of people like it
-- The ones that do not , really do not like it .


All times are GMT -5. The time now is 02:56 AM.