fixunix
Tags Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read

Problems with yum! - Redhat

This is a discussion on Problems with yum! - Redhat ; Hi I'm having problems running 'yum -y update' please can someone help me... thanks! I get the following errors afterwards: Traceback (most recent call last): File "/usr/bin/yum", line 29, in ? yummain.main(sys.argv[1:]) File "/usr/share/yum-cli/yummain.py", line 97, in main result, resultmsgs ...


Fix Unix > Linux > Redhat > Problems with yum!

Reply
 
LinkBack Tools
  #1  
Old 10-07-2007, 08:41 AM
Junior Member
 
Join Date: Sep 2009
Posts: 0
Default Problems with yum!

Hi

I'm having problems running 'yum -y update'
please can someone help me... thanks!

I get the following errors afterwards:


Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
yummain.main(sys.argv[1:])
File "/usr/share/yum-cli/yummain.py", line 97, in main
result, resultmsgs = do()
File "/usr/share/yum-cli/cli.py", line 481, in doCommands
return self.updatePkgs()
File "/usr/share/yum-cli/cli.py", line 957, in updatePkgs
self.doRepoSetup()
File "/usr/share/yum-cli/cli.py", line 82, in doRepoSetup
self.doSackSetup(thisrepo=thisrepo)
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 291, in
doSackSetup
self.repos.populateSack(which=repos)
File "/usr/lib/python2.4/site-packages/yum/repos.py", line 289, in
populateSack
dobj = repo.cacheHandler.getPrimary(xml, csum)
File "/usr/lib/python2.4/site-packages/yum/sqlitecache.py", line 96, in
getPrimary
return self._getbase(location, checksum, 'primary')
File "/usr/lib/python2.4/site-packages/yum/sqlitecache.py", line 89, in
_getbase
self.updateSqliteCache(db, parser, checksum, metadatatype)
File "/usr/lib/python2.4/site-packages/yum/sqlitecache.py", line 373, in
updateSqliteCache
cur.execute("DELETE FROM "+table+ " where pkgKey in %s" % delpkgs)
File "/usr/lib/python2.4/site-packages/sqlite/main.py", line 244, in
execute
self.rs = self.con.db.execute(SQL)
_sqlite.DatabaseError: database disk image is malformed
Reply With Quote
  #2  
Old 10-07-2007, 08:41 AM
Junior Member
 
Join Date: Sep 2009
Posts: 0
Default Re: Problems with yum!

Stan wrote:

> Hi
>
> I'm having problems running 'yum -y update'
> please can someone help me... thanks!
>
> I get the following errors afterwards:


Rebuild your current version of yum from the source rpm file. Want a better
answer provide more information. please have a look at;

http://linuxmafia.com/faq/Essays/smart-questions.html


--
"A personal computer is called a personal computer because it's yours,
Anything that runs on that computer, you should have control over."
Andrew Moss, Microsoft's senior director of technical policy, 2005
Reply With Quote
  #3  
Old 10-07-2007, 08:41 AM
Junior Member
 
Join Date: Sep 2009
Posts: 0
Default Re: Problems with yum!

Lenard wrote:

> Stan wrote:
>
>> Hi
>>
>> I'm having problems running 'yum -y update'
>> please can someone help me... thanks!
>>
>> I get the following errors afterwards:

>
> Rebuild your current version of yum from the source rpm file. Want a
> better answer provide more information. please have a look at;
>
> http://linuxmafia.com/faq/Essays/smart-questions.html
>
>


Thanks! I've actually done so but I still have the same problem. Is there
any other way to solve this problem? I will really appreciate if anyone can
help!
Reply With Quote
  #4  
Old 10-07-2007, 08:41 AM
Junior Member
 
Join Date: Sep 2009
Posts: 0
Default Re: Problems with yum!

Stan wrote:

> self.rs = self.con.db.execute(SQL)
> _sqlite.DatabaseError: database disk image is malformed



Hi Stan. I'm just taking a guess here... but the error message
looks like a corrupted SQLite file:

"sqlite.DatabaseError: database disk image is malformed"

Yum maintains several sqlite databases. The command "yum makecache" will rebuild
several of them. Dunno if this will help or not, but may be worth a try.
--
Greg









Reply With Quote
  #5  
Old 10-07-2007, 08:41 AM
Junior Member
 
Join Date: Sep 2009
Posts: 0
Default Re: Problems with yum!

Greg Hackney wrote:

> Stan wrote:
>
>> self.rs = self.con.db.execute(SQL)
>> _sqlite.DatabaseError: database disk image is malformed

>
>
> Hi Stan. I'm just taking a guess here... but the error message
> looks like a corrupted SQLite file:
>
> "sqlite.DatabaseError: database disk image is malformed"
>
> Yum maintains several sqlite databases. The command "yum makecache" will
> rebuild several of them. Dunno if this will help or not, but may be worth
> a try. --
> Greg



Thank you Greg!

This command did not solve the problem directly but it gave me the idea to
try the following sequentially:

1.) yum clean metadata
2.) yum clean dbcache
3.) yum makecache

as I'm writing this message, the process is still going on... this might
solve my problem. I'll still post a message here if all is OK or not!!!

Thanks!
Reply With Quote
  #6  
Old 10-07-2007, 08:41 AM
Junior Member
 
Join Date: Sep 2009
Posts: 0
Default Re: Problems with yum!

Stan wrote:

> Greg Hackney wrote:
>
>> Stan wrote:
>>
>>> self.rs = self.con.db.execute(SQL)
>>> _sqlite.DatabaseError: database disk image is malformed

>>
>>
>> Hi Stan. I'm just taking a guess here... but the error message
>> looks like a corrupted SQLite file:
>>
>> "sqlite.DatabaseError: database disk image is malformed"
>>
>> Yum maintains several sqlite databases. The command "yum makecache" will
>> rebuild several of them. Dunno if this will help or not, but may be worth
>> a try. --
>> Greg

>
>
> Thank you Greg!
>
> This command did not solve the problem directly but it gave me the idea to
> try the following sequentially:
>
> 1.) yum clean metadata
> 2.) yum clean dbcache
> 3.) yum makecache
>
> as I'm writing this message, the process is still going on... this might
> solve my problem. I'll still post a message here if all is OK or not!!!
>
> Thanks!



I can 100% say now that all is OK again with yum.
Thanks a million Greg and Lenard for your help!
Reply With Quote
Reply

Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
IpSec / secpol.msc - problems, problems. problems. unix Network 1 10-03-2007 09:39 PM
netLib problems? Memory problems? File opening fails... unix VxWorks 2 10-02-2007 08:38 AM
Re: 1] Problems with compiler 2] Problems with Rhide -- Update More info unix MS-DOS 0 10-01-2007 04:52 AM
1] Problems with compiler 2] Problems with Rhide -- Update More info unix MS-DOS 17 10-01-2007 04:52 AM
Re: X server problems (was Re: Problems with Debian Woody install and Amiga 2.4.20 kernel) unix Powerpc 1 09-30-2007 05:52 PM


All times are GMT. The time now is 09:33 AM.