Seems like Debian can't lock a file/folder for the update from 18.0.4 to 18.0.5

Status
Not open for further replies.

WhoAmI

Premier Customer
Joined
Oct 19, 2022
Messages
6
Reaction score
3
Hello together,

sorry for posting the issue in German, but that is the servers language.
Has anybody had this issue when upgrading from 18.0.4.965 to 18.0.5.415?

"Paketlisten werden gelesen...
E: Konnte Sperre /var/lib/apt/lists/lock nicht bekommen - open (11: Die Ressource ist zur Zeit nicht verfügbar)
E: Das Verzeichnis /var/lib/apt/lists/ kann nicht gesperrt werden.
Paketlisten werden gelesen...
Abhängigkeitsbaum wird aufgebaut....
Statusinformationen werden eingelesen....
Einige Pakete konnten nicht installiert werden. Das kann bedeuten, dass
Sie eine unmögliche Situation angefordert haben oder, wenn Sie die
Unstable-Distribution verwenden, dass einige erforderliche Pakete noch
nicht erstellt wurden oder Incoming noch nicht verlassen haben.
Die folgenden Informationen helfen Ihnen vielleicht, die Situation zu lösen:

Die folgenden Pakete haben unerfüllte Abhängigkeiten:
3cxpbx : Hängt ab von: libmediainfo0v5 ist aber nicht installierbar
W: --force-yes ist veraltet, verwenden Sie stattdessen eine der Optionen, die mit --allow beginnen.
E: Probleme können nicht korrigiert werden, Sie haben zurückgehaltene defekte Pakete.
Rollback to 18.0.4.965...
Paketlisten werden gelesen...
E: Konnte Sperre /var/lib/apt/lists/lock nicht bekommen - open (11: Die Ressource ist zur Zeit nicht verfügbar)
E: Das Verzeichnis /var/lib/apt/lists/ kann nicht gesperrt werden.
Paketlisten werden gelesen...
Abhängigkeitsbaum wird aufgebaut....
Statusinformationen werden eingelesen....
3cxpbx ist schon die neueste Version (18.0.4.965).
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 30 nicht aktualisiert.
W: --force-yes ist veraltet, verwenden Sie stattdessen eine der Optionen, die mit --allow beginnen."

How can I resolve this?
 

Translation results​

"Reading package lists... E: Couldn't get lock /var/lib/apt/lists/lock - open (11: The resource is currently unavailable) E: The directory /var/lib/apt/lists/ cannot be locked. Reading package lists... Dependency tree is being built.... Status information is read.... Some packages could not be installed. That can mean that You have requested an impossible situation or if you are the Unstable distribution that still use some required packages have not been created or have not yet left Incoming. The following information may help you to resolve the situation: The following packages have unmet dependencies: 3cxpbx : Depends on: libmediainfo0v5 but is not installable W: --force-yes is deprecated, use one of the options beginning with --allow instead. E: Unable to correct problems, you have held defective packages. Roll back to 18.0.4.965... Reading package lists... E: Couldn't get lock /var/lib/apt/lists/lock - open (11: The resource is currently unavailable) E: The directory /var/lib/apt/lists/ cannot be locked. Reading package lists... Dependency tree is being built.... Status information is read.... 3cxpbx is already the latest version (18.0.4.965). 0 updated, 0 newly installed, 0 to remove and 30 not updated. W: --force-yes is deprecated, use one of the options beginning with --allow instead."

What happens if you reboot the system and re-run the update? Same error?

If it is the same error, maybe take a look at https://www.3cx.com/community/threa...cx-through-command-prompt.116992/#post-541948

You may have to swap 1804 with 1805 in /etc/apt/sources.list

Let us know what you find!
 
What happens if you reboot the system and re-run the update? Same error?
yes, same error again.
You may have to swap 1804 with 1805 in /etc/apt/sources.list
I'm not the best linux admin :oops: I like, that 3CX updates the Debian OS as well and I don't really need to touch it and I always use the GUI updater to update 3CX.Do I only need to change the version from 1804 to 1805 in this list-file and retry afterwards?
 
Hmm, it should have just worked through the MGMT Console GUI updater...

At this point, I would suggest the easiest fix (without much command-line) is to download a fresh official 3CX ISO and restore a backup file using the option 1."Using a web browser".

I hope this helps.
 
3CX updates the Debian OS as well and I don't really need to touch it and I always use the GUI updater to update 3CX
Just a note, since it's not really apparent...if you enable automatic updates, 3CX updates Debian packages. If you install manual updates, it does not. One option is to disable automatic updates and only enable them when you want an update to install. (and also worth noting, 3CX recommends against installing OS updates manually at the command line so no dependencies are broken)
 
If you install manual updates, it does not.
You mean, if I install 3CX updates via GUI updater manually, it does not update Debian packages? But if 3CX automatic updates are enabled in the GUI, it will?
Are you sure? I updated 3CX v16 to v18 manually and it involved Debian update as well, or has this been an exception?
 
  • Like
Reactions: Nathan@Voxtelesys
You mean, if I install 3CX updates via GUI updater manually, it does not update Debian packages? But if 3CX automatic updates are enabled in the GUI, it will?
Correct. I'm not talking about upgrading Debian itself when upgrading 3CX from 16 to 18. For instance if Debian issues security updates for any packages, the manual update won't install them. I don't have a link handy but there are forum posts from 3CX over the last year or two. I didn't say I agreed with this approach. :)

Is the 18.0.5 ISO able to restore the 18.0.4 backup?
Yes it can do that, but you cannot restore a backup from a later version to an earlier version.
 
Status
Not open for further replies.

Forum statistics

Threads
111,974
Messages
590,081
Members
164,899
Latest member
mazet