Another Mintbackup problem...

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Quirken
Level 1
Level 1
Posts: 26
Joined: Sat Nov 13, 2010 8:42 am

Another Mintbackup problem...

Post by Quirken »

I've done some searching and found other people having problems with mintbackup, but nobody seems to have the same one as I have, so here goes:

Backed up my package selection with Mintbackup last night. Installed 64-bit LMDE (was using 32-bit LMDE before), did a full dist-upgrade, etc.

Mintbackup loads fine, I can go to "Restore software selection", find my backup no problem, but when I click forward, it gives an error (in terminal):
'Package' object has no attribute 'isInstalled'
Any ideas?

Edit: I restored the 32-bit LMDE (going to wait for the 64 bit respin)... out of curiosity, I went to see if Mintbackup could read the package list in the 32 bit install. No beans. Same error, slightly more verbose output:
dylan@tranquilinux ~ $ mintbackup
'Package' object has no attribute 'isInstalled'
The program 'mintBackup.py' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadRequest (invalid request code or no such operation)'.
(Details: serial 10132 error_code 1 request_code 0 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Realheroaustralia

Re: Another Mintbackup problem...

Post by Realheroaustralia »

Backed up my package selection with Mintbackup last night. Installed 64-bit LMDE (was using 32-bit LMDE before), did a full dist-upgrade, etc. :mrgreen:
gorade
Level 2
Level 2
Posts: 77
Joined: Sat Feb 07, 2009 3:53 pm

Re: Another Mintbackup problem...

Post by gorade »

When installed from the disc MintBackup can restore programs (with the inevitable complaint on corrupt packages, of course), but after upgrade and update it can't. It stops and freezes. Some update seems to have gone wrong.
It neither can't make a backup nor restore one from before. It just locks up and has to be closed by force.
gorade
Level 2
Level 2
Posts: 77
Joined: Sat Feb 07, 2009 3:53 pm

Re: Another Mintbackup problem...

Post by gorade »

Still can't save program selection nor restore program selection with mintbackup. Not clever enough to find out what hangs it up. It starts working in LMDE The throbber appears but then it is locked and has to be closed by force. The version on the installation DVD though does what is expected. Some update wrecked it and I can't find a fix.

It works with Katya 64 bit.
gorade
Level 2
Level 2
Posts: 77
Joined: Sat Feb 07, 2009 3:53 pm

Re: Another Mintbackup problem...

Post by gorade »

gorade wrote:It works with Katya 64 bit.
No, it does NOT. Sorry
hozomean

Re: Another Mintbackup problem...

Post by hozomean »

this is related to the LMDE bugs after upgrading to python-apt-0.8.0. I've opened bug https://bugs.launchpad.net/linuxmint/+bug/829743 to track it and am working on a patch now.
Quirken
Level 1
Level 1
Posts: 26
Joined: Sat Nov 13, 2010 8:42 am

Re: Another Mintbackup problem...

Post by Quirken »

I'm using the new LMDE update packs. But when I tested out the 64-bit LMDE, that was straight out of the box (and then after a dist-upgrade), not using the new repos.

output from the dpkg-qury:

Code: Select all

dylan@tranquilinux ~ $ dpkg-query -l python-apt
dpkg-query: warning: parsing file '/var/lib/dpkg/available' near line 38225 package 'pidgin-extended-blist':
 error in Version string 'sort-1': version number does not start with digit
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  python-apt     0.8.0          Python interface to libapt-pkg
I notice you changed your post; should I not install that package?

edit: Looks like you changed it again (and figured it out). Thanks!
hozomean

Re: Another Mintbackup problem...

Post by hozomean »

yeah, sorry for the confusion. I responded without looking at the code (assuming it was something else). Should be a pretty simple fix.
hozomean

Re: Another Mintbackup problem...

Post by hozomean »

patch submitted. seems to work for package save and restore and satisfies all the api changes according to the python-apt migration tool.
Quirken
Level 1
Level 1
Posts: 26
Joined: Sat Nov 13, 2010 8:42 am

Re: Another Mintbackup problem...

Post by Quirken »

hozomean wrote:patch submitted. seems to work for package save and restore and satisfies all the api changes according to the python-apt migration tool.
Awesome, thanks :D
hozomean

Re: Another Mintbackup problem...

Post by hozomean »

understand what's attached is NOT an approved mint package. use at your own risk (and please install the official package when it comes out). though this generally doesn't seem like good practice, backing up and restoring your files is so crucial that waiting for the changes to make it in might not be an option for some, so, this "unofficial" package should get you through in the meantime. If you choose to use it and have any problems, post here or message me privately.
Quirken
Level 1
Level 1
Posts: 26
Joined: Sat Nov 13, 2010 8:42 am

Re: Another Mintbackup problem...

Post by Quirken »

hozomean wrote:understand what's attached is NOT an approved mint package. use at your own risk (and please install the official package when it comes out). though this generally doesn't seem like good practice, backing up and restoring your files is so crucial that waiting for the changes to make it in might not be an option for some, so, this "unofficial" package should get you through in the meantime. If you choose to use it and have any problems, post here or message me privately.
How long do you think it would take this patch to make into the repositories?
hozomean

Re: Another Mintbackup problem...

Post by hozomean »

the last patch i submitted took around a month, but i can't tell you anything for sure. the changes in the attached package amount to about 3 lines of total code, fwiw.
Quirken
Level 1
Level 1
Posts: 26
Joined: Sat Nov 13, 2010 8:42 am

Re: Another Mintbackup problem...

Post by Quirken »

hozomean wrote:the last patch i submitted took around a month, but i can't tell you anything for sure. the changes in the attached package amount to about 3 lines of total code, fwiw.
Is there anything we can do to accelerate the process? This feels like a really really important patch that the lack of might turn some people off of Mint...
hozomean

Re: Another Mintbackup problem...

Post by hozomean »

or just install my package. the diff is in the bugs db... you can know what you're installing very easily.
Quirken
Level 1
Level 1
Posts: 26
Joined: Sat Nov 13, 2010 8:42 am

Re: Another Mintbackup problem...

Post by Quirken »

kaney2021 wrote:Common sense is critical during a health crisis like the swine flu. It can help you sort out fact from fiction. Learn what you can do to help keep yourself safe.
lol

I'm fine with this patch. What I meant is that somebody who doesn't know about the existence of the patch could have their Mint experience tainted by this. In other words, it seems like it should be reasonably high priority for review - especially because the change is so small.
hozomean

Re: Another Mintbackup problem...

Post by hozomean »

yeah, i thought it would be funnier to take the swine flu comment seriously. i did email clem and offer to submit to changes to git myself, but I gather they're pretty busy these days with the ubuntu exodus.
Quirken
Level 1
Level 1
Posts: 26
Joined: Sat Nov 13, 2010 8:42 am

Re: Another Mintbackup problem...

Post by Quirken »

bug page says it's been fixed! looks like Clem got to it =]
Locked

Return to “Software & Applications”