Univention Bugzilla – Bug 43619
AppCenter: LockFailedException: Failed to lock /var/cache/apt/archives/lock
Last modified: 2018-10-26 17:13:10 CEST
Version: 4.1-4 errata360 (Vahr) Remark: i am not able to install this app Traceback(9aa68b43f0fbd6edf90c73ff5f8a34eb): Execution of command 'appcenter/docker/progress' has failed: Traceback (most recent call last): File "%PY2.7%/univention/management/console/base.py", line 281, in execute function(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 318, in _response result = _multi_response(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 462, in _response return list(function(self, iterator, *nones)) File "%PY2.7%/univention/management/console/modules/decorators.py", line 284, in _fake_func yield function(self, *args) File "%PY2.7%/univention/management/console/modules/mixins.py", line 149, in progress ret = progress_obj.poll() File "%PY2.7%/univention/management/console/modules/decorators.py", line 309, in _thread result = _multi_response(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 462, in _response return list(function(self, iterator, *nones)) File "%PY2.7%/univention/management/console/modules/decorators.py", line 284, in _fake_func yield function(self, *args) File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 404, in invoke_docker result['success'] = action.call(app=app, username=self.username, password=self.password, **kwargs) File "%PY2.7%/univention/appcenter/actions/__init__.py", line 185, in call return obj.call_with_namespace(namespace) File "%PY2.7%/univention/appcenter/actions/__init__.py", line 191, in call_with_namespace result = self.main(namespace) File "%PY2.7%/univention/appcenter/actions/install.py", line 67, in main return self.do_it(args) File "%PY2.7%/univention/appcenter/actions/install_base.py", line 109, in do_it self._do_it(app, args) File "%PY2.7%/univention/appcenter/actions/docker_install.py", line 65, in _do_it ret = super(Install, self)._do_it(app, args) File "%PY2.7%/univention/appcenter/actions/install.py", line 80, in _do_it self._register_database(app) File "%PY2.7%/univention/appcenter/actions/register.py", line 274, in _register_database database_connector.create_database() File "%PY2.7%/univention/appcenter/database.py", line 173, in create_database self.setup() File "%PY2.7%/univention/appcenter/database.py", line 169, in setup self.install() File "%PY2.7%/univention/appcenter/database.py", line 111, in install mark_packages_as_manually_installed(packages) File "%PY2.7%/univention/appcenter/packages.py", line 104, in mark_packages_as_manually_installed return get_package_manager().mark_auto(False, *pkgs) File "%PY2.7%/univention/lib/package_manager.py", line 500, in mark_auto self.commit() File "%PY2.7%/univention/lib/package_manager.py", line 645, in commit result = self.cache.commit(**kwargs) File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 478, in commit res = self._fetch_archives(fetcher, pm) File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 296, in _fetch_archives raise LockFailedException("Failed to lock %s" % lockfile) LockFailedException: Failed to lock /var/cache/apt/archives/lock
Reported again, Version: 4.1-4 errata386 (Vahr) Remark: Hello, I installed ucs on a virtual server, I made updates without problems, but I tried to install owncloud 9.1, I registered an error. We are reviewing your product, but we still do not fall in love. regards
Fixed by Bug #41303?
Reported again, 4.2-0 errata26 (Lesum)
Version: 4.2-1 errata197 (Lesum)
Reported again: 4.2-2 errata157 (Lesum)
@Dirk: You commited the changes in 4.2-2. Please assign a milestone and adjust the YAML file.
Fixed in univention-lib (6.0.9-21) This issue was solved in the underlying PackageManager. It now also locks the apt lock file.
OK - code review OK -> apt-get install mc Paketlisten werden gelesen... Fertig Abhängigkeitsbaum wird aufgebaut. Statusinformationen werden eingelesen.... Fertig Die folgenden zusätzlichen Pakete werden installiert: mc-data Vorgeschlagene Pakete: arj catdvi texlive-binaries dbview djvulibre-bin genisoimage gv imagemagick links w3m lynx odt2txt poppler-utils python-boto xpdf pdf-viewer Die folgenden NEUEN Pakete werden installiert: mc mc-data 0 aktualisiert, 2 neu installiert, 0 zu entfernen und 35 nicht aktualisiert. Es müssen 1.717 kB an Archiven heruntergeladen werden. Nach dieser Operation werden 7.006 kB Plattenplatz zusätzlich benutzt. Möchten Sie fortfahren? [J/n] @different terminal-> univention-app install xrdp ... E: Konnte Sperre /var/lib/dpkg/lock nicht bekommen - open (11: Die Ressource ist zur Zeit nicht verfügbar) E: Sperren des Administrationsverzeichnisses (/var/lib/dpkg/) nicht möglich, wird es von einem anderen Prozess verwendet? E: Konnte Sperre /var/lib/dpkg/lock nicht bekommen - open (11: Die Ressource ist zur Zeit nicht verfügbar) E: Sperren des Administrationsverzeichnisses (/var/lib/dpkg/) nicht möglich, wird es von einem anderen Prozess verwendet? Failed to install the App Aborting... ... OK - UMC OK - YAML
<http://errata.software-univention.de/ucs/4.2/225.html>
Reported again: Version: 4.2-2 errata197 (Lesum)
Reported again: Version: 4.2-1 errata131 (Lesum) Execution of command 'appcenter/docker/progress' has failed: Traceback (most recent call last): File "%PY2.7%/univention/management/console/base.py", line 249, in execute function.__func__(self, request, *args, **kwargs) File "%PY2.7%/univention/management/console/modules/decorators.py", line 318, in _response result = _multi_response(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 192, in _response return function(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 440, in _response return list(function(self, iterator, *nones)) File "%PY2.7%/univention/management/console/modules/decorators.py", line 286, in _fake_func yield function(self, *args) File "%PY2.7%/univention/management/console/modules/mixins.py", line 149, in progress ret = progress_obj.poll() File "%PY2.7%/univention/management/console/modules/decorators.py", line 309, in _thread result = _multi_response(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 192, in _response return function(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 440, in _response return list(function(self, iterator, *nones)) File "%PY2.7%/univention/management/console/modules/decorators.py", line 286, in _fake_func yield function(self, *args) File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 417, in invoke_docker result['success'] = action.call(app=app, username=self.username, password=self.password, **kwargs) File "%PY2.7%/univention/appcenter/actions/__init__.py", line 239, in call return obj.call_with_namespace(namespace) File "%PY2.7%/univention/appcenter/actions/__init__.py", line 245, in call_with_namespace result = self.main(namespace) File "%PY2.7%/univention/appcenter/actions/install.py", line 70, in main return self.do_it(args) File "%PY2.7%/univention/appcenter/actions/install_base.py", line 126, in do_it self._do_it(app, args) File "%PY2.7%/univention/appcenter/actions/docker_install.py", line 65, in _do_it ret = super(Install, self)._do_it(app, args) File "%PY2.7%/univention/appcenter/actions/install.py", line 83, in _do_it self._register_database(app) File "%PY2.7%/univention/appcenter/actions/register.py", line 341, in _register_database database_connector.create_database() File "%PY2.7%/univention/appcenter/database.py", line 173, in create_database self.setup() File "%PY2.7%/univention/appcenter/database.py", line 169, in setup self.install() File "%PY2.7%/univention/appcenter/database.py", line 111, in install mark_packages_as_manually_installed(packages) File "%PY2.7%/univention/appcenter/packages.py", line 102, in mark_packages_as_manually_installed return get_package_manager().mark_auto(False, *pkgs) File "%PY2.7%/univention/lib/package_manager.py", line 500, in mark_auto self.commit() File "%PY2.7%/univention/lib/package_manager.py", line 645, in commit result = self.cache.commit(**kwargs) File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 501, in commit res = self._fetch_archives(fetcher, pm) File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 322, in _fetch_archives raise LockFailedException("Failed to lock %s" % lockfile) LockFailedException: Failed to lock /var/cache/apt/archives/lock
Reported again: Version: 4.2-1 errata131 (Lesum) Traceback: Same as Comment 11
Reported again: Version: 4.2-1 errata197 (Lesum) Execution of command 'appcenter/docker/progress' has failed: Traceback (most recent call last): File "%PY2.7%/univention/management/console/base.py", line 249, in execute function.__func__(self, request, *args, **kwargs) File "%PY2.7%/univention/management/console/modules/decorators.py", line 318, in _response result = _multi_response(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 192, in _response return function(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 440, in _response return list(function(self, iterator, *nones)) File "%PY2.7%/univention/management/console/modules/decorators.py", line 286, in _fake_func yield function(self, *args) File "%PY2.7%/univention/management/console/modules/mixins.py", line 149, in progress ret = progress_obj.poll() File "%PY2.7%/univention/management/console/modules/decorators.py", line 309, in _thread result = _multi_response(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 192, in _response return function(self, request) File "%PY2.7%/univention/management/console/modules/decorators.py", line 440, in _response return list(function(self, iterator, *nones)) File "%PY2.7%/univention/management/console/modules/decorators.py", line 286, in _fake_func yield function(self, *args) File "%PY2.7%/univention/management/console/modules/appcenter/__init__.py", line 417, in invoke_docker result['success'] = action.call(app=app, username=self.username, password=self.password, **kwargs) File "%PY2.7%/univention/appcenter/actions/__init__.py", line 239, in call return obj.call_with_namespace(namespace) File "%PY2.7%/univention/appcenter/actions/__init__.py", line 245, in call_with_namespace result = self.main(namespace) File "%PY2.7%/univention/appcenter/actions/install.py", line 70, in main return self.do_it(args) File "%PY2.7%/univention/appcenter/actions/install_base.py", line 126, in do_it self._do_it(app, args) File "%PY2.7%/univention/appcenter/actions/docker_install.py", line 65, in _do_it ret = super(Install, self)._do_it(app, args) File "%PY2.7%/univention/appcenter/actions/install.py", line 83, in _do_it self._register_database(app) File "%PY2.7%/univention/appcenter/actions/register.py", line 341, in _register_database File "%PY2.7%/univention/appcenter/database.py", line 173, in create_database self.setup() File "%PY2.7%/univention/appcenter/database.py", line 169, in setup self.install() File "%PY2.7%/univention/appcenter/database.py", line 111, in install mark_packages_as_manually_installed(packages) File "%PY2.7%/univention/appcenter/packages.py", line 102, in mark_packages_as_manually_installed return get_package_manager().mark_auto(False, *pkgs) File "%PY2.7%/univention/lib/package_manager.py", line 500, in mark_auto self.commit() File "%PY2.7%/univention/lib/package_manager.py", line 645, in commit result = self.cache.commit(**kwargs) File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 501, in commit res = self._fetch_archives(fetcher, pm) File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 322, in _fetch_archives raise LockFailedException("Failed to lock %s" % lockfile) LockFailedException: Failed to lock /var/cache/apt/archives/lock Role: domaincontroller_master