Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11th March 2010, 04:20 AM
utkarshl's Avatar
utkarshl Offline
Registered User
 
Join Date: Mar 2010
Posts: 9
linuxfedorafirefox
yum not working properly

whenever i start package manager, i am getting following message :
Error Type: <class 'packagekit.backend.PkError'>
Error Value: 'failed-initialization: There are unfinished transactions remaining. Please run yum-complete-transaction as root.'
File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 3235, in <module>
main()
File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 3232, in main
backend.dispatcher(sys.argv[1:])
File : /usr/lib/python2.6/site-packages/packagekit/backend.py, line 699, in dispatcher
self.dispatch_command(args[0], args[1:])
File : /usr/lib/python2.6/site-packages/packagekit/backend.py, line 569, in dispatch_command
self.get_repo_list(filters)
File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2451, in get_repo_list
self._check_init()
File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2795, in _check_init
raise PkError(ERROR_FAILED_INITIALIZATION, 'There are unfinished transactions remaining. Please run yum-complete-transaction as root.')

also since 3 or 4 days the following message pops up automatically nearly every half hour (attached image):
failed to initialize packaging backend.
this may occur if you are using other packaging tools simultaneously.
more details:
There are unfinished transactions remaining. Please run yum-complete-transaction as root.

when i run yum-complete-transaction, i get the following message:

[utkarsh@Coder-lappy ~]$ yum-complete-transaction
Command not found.
* Waiting in queue.. Install package 'yum-utils' to provide command 'yum-complete-transaction'? [N/y]
* Installing packages..
* Getting information..

* Waiting for authentication.. The transaction failed: failed-initialization, There are unfinished transactions remaining. Please run yum-complete-transaction as root.
[utkarsh@Coder-lappy ~]$


let me tell that i used to use yum-complete-transaction quite often, so it is improbable that i do have yum-utils installed . pakage manager reports that it is already installed.
i am not able to install any package.
please help.
Attached Thumbnails
Click image for larger version

Name:	Screenshot-Untitled Window.png
Views:	245
Size:	16.9 KB
ID:	19217  
Reply With Quote
  #2  
Old 11th March 2010, 04:25 AM
Hlingler's Avatar
Hlingler Offline
Administrator
 
Join Date: Sep 2006
Location: Connellsville, PA, USA
Posts: 11,289
linuxopera
Re: yum not working properly

http://forums.fedoraforum.org/showthread.php?t=240072

V
Reply With Quote
  #3  
Old 11th March 2010, 12:18 PM
leigh123linux's Avatar
leigh123linux Offline
Retired Administrator
 
Join Date: Oct 2006
Posts: 21,509
linuxfedorafirefox
Re: yum not working properly

Moved to general support

please don't post questions to the Guides & Solutions (No Questions) again
Reply With Quote
  #4  
Old 11th March 2010, 01:28 PM
markkuk Offline
Registered User
 
Join Date: Apr 2005
Location: Finland
Posts: 5,076
linuxfirefox
Re: yum not working properly

The messages tell you to run yum-complete-transaction as root, but you are trying to run it as regular user. Please run yum-complete-transaction as root.
Reply With Quote
  #5  
Old 13th March 2010, 04:52 AM
jamesjpn Offline
Registered User
 
Join Date: Jun 2005
Location: Near the Sea of Japan
Age: 62
Posts: 150
linuxfedorafirefox
Re: yum not working properly

I've been getting the error message of "There are unfinished transactions remaining" from Package Kit, Yum and Yumex.

I ran as root:

yum-complete-transaction

But the output is:

"No unfinished transactions left."

However yum, yumex and package kit still tells me even after running "yum-complete-transaction" that I have unfinished transactions!!

The "yum clean all" command doesn't fix it. What gives? I searched this forum but can't seem to find anybody else with this problem. Can somebody help me please?
__________________
jamesjpn
My blog
Adventures with Fedora
Reply With Quote
  #6  
Old 13th March 2010, 05:01 AM
Hlingler's Avatar
Hlingler Offline
Administrator
 
Join Date: Sep 2006
Location: Connellsville, PA, USA
Posts: 11,289
linuxopera
Re: yum not working properly

Try:
su
yum-complete-transaction --cleanup-only
[...]
yum clean all


See if that makes the messages go away. You might also want to check out:
su
package-cleanup --dupes
package-cleanup --problems


V

P.S. I recall seeing this same question recently... .
Reply With Quote
  #7  
Old 13th March 2010, 08:50 AM
jamesjpn Offline
Registered User
 
Join Date: Jun 2005
Location: Near the Sea of Japan
Age: 62
Posts: 150
linuxfedorafirefox
Re: yum not working properly

Quote:
Originally Posted by Hlingler View Post
Try:
su
yum-complete-transaction --cleanup-only
[...]
yum clean all


See if that makes the messages go away. You might also want to check out:
su
package-cleanup --dupes
package-cleanup --problems


V

P.S. I recall seeing this same question recently... .
Thank you so much for your help!

yum-complete-transaction --cleanup-only doesn't fix it.
Neither does yum clean all
package-cleanup --problems reports no problems.
However, the output of package-cleanup --dupes is:

samba-3.4.6-57.fc12.x86_64
samba-3.4.7-58.fc12.x86_64
libsmbclient-3.4.7-58.fc12.x86_64
libsmbclient-3.4.6-57.fc12.x86_64
tzdata-2010c-1.fc12.noarch
tzdata-2010e-1.fc12.noarch
samba-common-3.4.7-58.fc12.x86_64
samba-common-3.4.6-57.fc12.x86_64
tzdata-java-2010c-1.fc12.noarch
tzdata-java-2010e-1.fc12.noarch
samba-winbind-clients-3.4.6-57.fc12.x86_64
samba-winbind-clients-3.4.7-58.fc12.x86_64
samba-client-3.4.6-57.fc12.x86_64
samba-client-3.4.7-58.fc12.x86_64

What to do now? Shall I try to use yum to remove the older version of each one?
__________________
jamesjpn
My blog
Adventures with Fedora
Reply With Quote
  #8  
Old 13th March 2010, 10:37 AM
mouse_runner's Avatar
mouse_runner Offline
Registered User
 
Join Date: Oct 2009
Location: Netherlands
Age: 41
Posts: 397
linuxfirefox
Re: yum not working properly

did you try as root
Code:
yum-complete-transaction
__________________
dell Studio 17, 4GB mem, 320GB HD Ubuntu 10.04 LTS
Gnome desktop
[SIGPIC][/SIGPIC]
Reply With Quote
  #9  
Old 13th March 2010, 11:09 AM
jamesjpn Offline
Registered User
 
Join Date: Jun 2005
Location: Near the Sea of Japan
Age: 62
Posts: 150
linuxfedorafirefox
Re: yum not working properly

Quote:
Originally Posted by mouse_runner View Post
did you try as root
Code:
yum-complete-transaction
Yes, I did. The output:

[root@phenom9350 jamesjp]# yum-complete-transaction
Loaded plugins: presto, refresh-packagekit
No unfinished transactions left.

What I did do was to to follow Mr. Hlingler's lead, ran

package-cleanup --dupes

Uninstalled all those packages, and re-installed the ones I needed. Dupes are now gone.

I still got a dependency problem from from abrt when I tried to update. And so I removed abrt with yum. No more dependency problem and I can do updates now.

However I still get the message "There are unfinished transactions remaining" from Package kit, and so I disabled Package kit from session startup. That fixed the problem, at least the symptom of the problem.

And so even though Package kit will not notify me of updates anymore, I will do a manual update once a week from now on till Fedora 13 comes out. and then I'll do a fresh install with Fedora 13. Problem solved for sure by then.

Thank you for your feedback!
__________________
jamesjpn
My blog
Adventures with Fedora
Reply With Quote
  #10  
Old 21st March 2010, 08:25 AM
utkarshl's Avatar
utkarshl Offline
Registered User
 
Join Date: Mar 2010
Posts: 9
linuxfedorafirefox
Re: yum not working properly

I tried all the above suggestions (as root) , namely

yum update : which did update but the problem was not resolved

[root@Coder-lappy utkaarsh]# yum-complete-transaction --cleanup-only
Command not found. Install package 'yum-utils' to provide command 'yum-complete-transaction'? [N/y] Failed to install packages: could not do simulate: There are unfinished transactions remaining. Please run yum-complete-transaction as root.

package-cleanup --dupes : reported nothing
package-cleanup --problems : reported nothing

I still keep getting the error at some interval of time as "failed to initialize packaging backend " and "run yum-complete-install"

but yum-complete-install has the same response as "yum-complete-transaction --cleanup-only " command above

i am not able to use package manager "add/remove software" to install/unistall packages
when i start package manager, i get the error:

Error Type: <class 'packagekit.backend.PkError'>
Error Value: 'failed-initialization: There are unfinished transactions remaining. Please run yum-complete-transaction as root.'
File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 3247, in <module>
main()
File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 3244, in main
backend.dispatcher(sys.argv[1:])
File : /usr/lib/python2.6/site-packages/packagekit/backend.py, line 699, in dispatcher
self.dispatch_command(args[0], args[1:])
File : /usr/lib/python2.6/site-packages/packagekit/backend.py, line 569, in dispatch_command
self.get_repo_list(filters)
File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2522, in get_repo_list
self._check_init()
File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2807, in _check_init
raise PkError(ERROR_FAILED_INITIALIZATION, 'There are unfinished transactions remaining. Please run yum-complete-transaction as root.')

Please somebody help
Reply With Quote
  #11  
Old 21st March 2010, 09:42 AM
marko's Avatar
marko Online
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,448
linuxfedorafirefox
Re: yum not working properly

Quote:
Originally Posted by utkarshl View Post
I tried all the above suggestions (as root) , namely

yum update : which did update but the problem was not resolved

[root@Coder-lappy utkaarsh]# yum-complete-transaction --cleanup-only
Command not found. Install package 'yum-utils' to provide command 'yum-complete-transaction'? [N/y] Failed to install packages: could not do simulate: There are unfinished transactions remaining. Please run yum-complete-transaction as root.
So did you do what it suggested you do? That is, yum install yum-utils
so you have yum-complete-transaction so you can actually run
yum-complete-transaction --cleanup-only
Reply With Quote
  #12  
Old 21st March 2010, 07:18 PM
utkarshl's Avatar
utkarshl Offline
Registered User
 
Join Date: Mar 2010
Posts: 9
windows_xp_2003firefox
Re: yum not working properly

yes i did that but the same result : you have incomplete transactions - run yum-complete-transaction...
and yum-complete-transaction won't work

---------- Post added at 11:48 PM CDT ---------- Previous post was at 05:00 PM CDT ----------

Please, does nobody have any solution to the problem i am facing ?
Reply With Quote
  #13  
Old 22nd March 2010, 06:39 AM
kyle775 Offline
Registered User
 
Join Date: Oct 2007
Location: Canada
Age: 30
Posts: 45
linuxfedorafirefox
Re: yum not working properly

i have recently been experiencing an identical issue.
nothing will stop this message from appearing, save disabling Package Kit
Reply With Quote
  #14  
Old 25th March 2010, 05:51 PM
JetmechAl Offline
Registered User
 
Join Date: May 2009
Location: Ottawa,Ontario,Canada
Posts: 3
linuxfedorafirefox
Re: yum not working properly

exact same Problem here.

found the same issue occurred on Fedora 11 in testing
see link httP://n2.nabble.com/yum-comPlete-tr...td1641595.html.

bug rePorted on Bugzilla- https://bugzilla.redhat.com/show_bug.cgi?id=571025.

May have to wait for a new release of yum-utils......

Mines a new dvd install i686.PAE.

Yum version yum-3.2.25-1.fc12.noarch

Would it be recomended to uninstall yum-utils to get rpm's loaded?????
as a temporary solution.
__________________

You can train a monkey to fly an aircraft but you can't teach one to fix it.
Reply With Quote
  #15  
Old 26th April 2010, 06:02 PM
JetmechAl Offline
Registered User
 
Join Date: May 2009
Location: Ottawa,Ontario,Canada
Posts: 3
linuxfedorafirefox
Re: yum not working properly

From another thread.
Found that adding "80.239.156.215 mirrors.fedoraproject.org" to my /etc/hosts file (opened with "gedit /etc/hosts" in terminal window as root user "su -" and then your root password) worked for me just great and easy.
Only in doing it under root credentials will you see the save button in solid color allowing you to overwrite this file.

thanks to the great community.
__________________

You can train a monkey to fly an aircraft but you can't teach one to fix it.
Reply With Quote
Reply

Tags
properly, working, yum

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trash not working properly BenTrein Using Fedora 1 9th August 2009 02:04 PM
su command not working properly (in FC6) guywood13 EOL (End Of Life) Versions 4 8th March 2008 07:05 PM


Current GMT-time: 02:22 (Monday, 20-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat