Could not calculate the upgrade

Progetto:Trisquel
Versione:8.0
Componente:Installer
Categoria:richiesta di supporto
Priorità:normal
Assigned:Non assegnata
Stato:closed
Descrizione


myusername@mycomputername:~$
myusername@mycomputername:~$ sudo update-manager
[sudo] password for myusername:

** (update-manager:3875): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-5e8wQfhIBZ: Connection refused
Traceback (most recent call last):
File "/usr/bin/update-manager", line 115, in
app = UpdateManager(data_dir, options)
File "/usr/lib/python3/dist-packages/UpdateManager/UpdateManager.py", line 115, in __init__
self.options and self.options.use_proposed)
File "/usr/lib/python3/dist-packages/UpdateManager/MetaReleaseGObject.py", line 44, in __init__
MetaReleaseCore.__init__(self, useDevelopmentRelease, useProposed)
File "/usr/lib/python3/dist-packages/UpdateManager/Core/MetaRelease.py", line 94, in __init__
cache = apt.Cache()
File "/usr/lib/python3/dist-packages/apt/cache.py", line 107, in __init__
self.open(progress)
File "/usr/lib/python3/dist-packages/apt/cache.py", line 151, in open
self._cache = apt_pkg.Cache(progress)
SystemError: E:Encountered a section with no Package: header, E:Problem with MergeList /var/lib/apt/lists/deb.torproject.org_torproject.org_dists_trusty_main_i18n_Translation-en, E:The package lists or status file could not be parsed or opened.

(update-manager:3875): GLib-CRITICAL **: g_hash_table_destroy: assertion 'hash_table != NULL' failed

(update-manager:3875): GLib-CRITICAL **: g_hash_table_destroy: assertion 'hash_table != NULL' failed
Exception ignored in: myusername@mycomputername:~$
myusername@mycomputername:~$
myusername@mycomputername:~$
myusername@mycomputername:~$
myusername@mycomputername:~$
myusername@mycomputername:~$
myusername@mycomputername:~$
myusername@mycomputername:~$ do-release-upgrade
Checking for a new Trisquel release
Traceback (most recent call last):
File "/usr/bin/do-release-upgrade", line 116, in
useProposed=options.proposed_release)
File "/usr/lib/python3/dist-packages/UpdateManager/Core/MetaRelease.py", line 94, in __init__
cache = apt.Cache()
File "/usr/lib/python3/dist-packages/apt/cache.py", line 107, in __init__
self.open(progress)
File "/usr/lib/python3/dist-packages/apt/cache.py", line 151, in open
self._cache = apt_pkg.Cache(progress)
SystemError: E:Encountered a section with no Package: header, E:Problem with MergeList /var/lib/apt/lists/deb.torproject.org_torproject.org_dists_trusty_main_i18n_Translation-en, E:The package lists or status file could not be parsed or opened.
myusername@mycomputername:~$

So I went to
Software & Udates > Other Software
and uncheck boxes for Tor sources.

Then I could run the update manager


mycomputername@myusername:~$ sudo update-manager
[sudo] password for myusername:

** (update-manager:15434): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-5e8wQfhIBZ: Connection refused
Checking for a new Trisquel release

** (do-release-upgrade:15498): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-5e8wQfhIBZ: Connection refused
authenticate 'flidas.tar.gz' against 'flidas.tar.gz.gpg'
extracting 'flidas.tar.gz'

** (flidas:15498): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-5e8wQfhIBZ: Connection refused

Besides the messages above, the upgrade stopped with a window saying:

"Could not calculate the upgrade

An unresolvable problem occurred while calculating the upgrade.

This can be caused by:
* Upgrading to a pre-release version of Trisquel
* Running the current pre-release version of Trisquel
* Unofficial software packages not provided by Trisquel

If none of this applies, then please report this bug using the command https://trisquel.info/en/project/issues in a browser.."

As I am running Trisquel 7, I thought the cause could only be the third one, so I went again to
Software & Udates > Other Software
and unchecked every box.

Then I run the update-manager again but got the same error window saying it could not calculate the upgrade : (

Ven, 04/20/2018 - 20:58

Sorry for those 'mycomputername@myusername' :P

Adding now more information, just in case it helps:

https://privatebin.net/?201152c12c5eb511#0ptAzd4wz27HqNPBf+CnKbFuBesGc6srYnLJsWxxxSs=

And even some background information, just in case it is related to the topic:

https://trisquel.info/en/forum/lost-password-restore-encrypted-home

Thank you.

Ven, 04/20/2018 - 20:08

Hi! can your try to sudo apt-get remove trisquel-desktop-common-recommended and check the process again? I think it shouldn't ask to delete anything important.

Ven, 04/20/2018 - 22:05

Hi david! Thank you! It works your solution, it's upgrading now!

Sab, 04/21/2018 - 10:06

Hi again, I'm stuck now, I don't know what to do, I do not dare to do anything.

During the upgrade I got the following message:

Could not install 'mysql-server-5.7'

The upgrade will continue but the 'mysql-server-5.7' package may not be in a working state. Please consider submitting a bug report about it.

subprocess installed post-installation script returned error exit status 127

And then this one:

Could not install 'libclutter-imcontext-0.1-bin'

The upgrade will continue but the 'libclutter-imcontext-0.1-bin' package may not be in a working state. Please consider submitting a bug report about it.

subprocess installed post-installation script returned error exit status 127

And in the end I got this sad message:

Could not install the upgrades

The upgrade has aborted. Your system could be in an unusable state. A recovery will run now (dpkg --configure -a).

But next this one:

Upgrade complete

The upgrade has completed but there were errors during the upgrade process.

And here I am now, I do not dare to do anything. I do not know if that recovery thing (dpkg --configure -a) did run or not, if it did it was in a hidden way.

I see my Trisquel as always, except I think the battery icon changed, also the System Tools menu and I cannot open many programs. I do not know what to do and I do not dare to reboot.

Should I manually run (dpkg --configure -a)?

Any suggestion is desperately welcome!

Thank you

Sab, 04/21/2018 - 11:55

You should be able to restart the computer and log in to your new Trisquel 8 install without much issue.

You may have to select the "Trisquel" session at the screen where you input your password to start using mate.

Your issues seem to have derived from some extra software installed but at least the base components should be ok. Tell us what happens once you restart and login.

Sab, 04/21/2018 - 15:16

Thanks.

I shut it down. Turned it on, I started to see this new Trisquel 8 water drops image but then the screen turned dark and nothing can be done there.

Fortunately tty is accessible. I can login through tty. But Ctrl+Alt+F7 keeps showing a dark screen.

Don't know how to fix this. Again, I'd be happy to read any suggestion!

Lun, 04/23/2018 - 22:55

Hello, sorry for the delay.

Is your situation still the same?
Which GPU is installed on your computer? could it be that you were using a driver from outside the repositories before?
Do you get some different result if you run from your text terminal sudo systemctl start lightdm?
Is there something revealing in the logs written to /var/log/lightdm after an attempt?

Please don't hesitate in attaching long logs or write me at david at trisquel.info if you're concerned with publishing them online. You can also remove any sensible information, we're looking mostly for critical Xorg or driver errors.

Mar, 04/24/2018 - 22:07

No problem! Thanks for following up!

As far as I know I am not using any driver from outside the repositories. What I did use very often is a second monitor. I mean I normally connect my laptop to a docking station which sends the signal to a bigger monitor I use.

Magic banana, at https://trisquel.info/en/forum/lost-password-restore-encrypted-home, also suggested
sudo systemctl start lightdmbut I just got the dark screen.

As soon as I have a while I will email you the contents of /var/log/lightdm after an attempt.

Thank you!

Dom, 04/29/2018 - 11:41

As explained at
https://trisquel.info/en/forum/lost-password-restore-encrypted-home#comment-131307
I gave up and went for a fresh install.

I guess the ticket can be closed.

Thank you very much for your help!

Sab, 01/15/2022 - 03:25
Stato:active» closed