# layman -S * Fetching remote list,... * Failed to fetch overlay list! * Original Error was: no element found: line 1, column 0 * Syncing selected overlays,... Traceback (most recent call last): File "/usr/lib/python-exec/python2.7/layman", line 45, in <module> main() File "/usr/lib64/python2.7/site-packages/layman/cli.py", line 184, in __call__ result += getattr(self, action[1])() File "/usr/lib64/python2.7/site-packages/layman/cli.py", line 252, in Sync result = self.api.sync(selection, update_news=True) File "/usr/lib64/python2.7/site-packages/layman/api.py", line 326, in sync ordb = self._get_remote_db().select(ovl) File "/usr/lib64/python2.7/site-packages/layman/api.py", line 496, in _get_remote_db self._available_db = RemoteDB(self.config) File "/usr/lib64/python2.7/site-packages/layman/db.py", line 281, in __init__ ignore_init_read_errors=ignore_init_read_errors) File "/usr/lib64/python2.7/site-packages/layman/dbbase.py", line 101, in __init__ self.read_file(path) File "/usr/lib64/python2.7/site-packages/layman/dbbase.py", line 133, in read_file self.read(document, origin=path) File "/usr/lib64/python2.7/site-packages/layman/dbbase.py", line 158, in read document = ET.fromstring(text) File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1301, in XML return parser.close() File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1654, in close self._raiseerror(v) File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror raise err xml.etree.ElementTree.ParseError: no element found: line 1, column 0 # ls -al /var/lib/layman/ total 280 drwxr-xr-x 3 root root 4096 Nov 28 22:09 . drwxr-xr-x 24 root root 4096 Dec 2 18:24 .. drwxr-xr-x 12 root root 4096 Nov 28 22:09 adjust -rw-r--r-- 1 root root 29 Dec 2 20:40 cache_256ea584770264cfafa29ce2fe18c87e.timestamp -rw-r--r-- 1 root root 0 Dec 2 20:41 cache_256ea584770264cfafa29ce2fe18c87e.xml -rw-r--r-- 1 root root 29 Dec 2 20:40 cache_ac494f50f5736be7871962c0dec7b3bb.timestamp -rw-r--r-- 1 root root 257671 Dec 2 20:40 cache_ac494f50f5736be7871962c0dec7b3bb.xml -rw-r--r-- 1 root root 417 Nov 28 22:09 installed.xml -rw-r--r-- 1 root root 0 Nov 28 22:07 .keep_app-portage_layman-0 -rw-r--r-- 1 root root 60 Nov 28 22:09 make.conf Notice the 0-byte file? That breaks it. Deleting all cache* files fixes.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=805fe7c0495e1bf3a34d518041e466258944b82b commit 805fe7c0495e1bf3a34d518041e466258944b82b Author: Jakov Smolić <jsmolic@gentoo.org> AuthorDate: 2023-06-22 13:15:09 +0000 Commit: Jakov Smolić <jsmolic@gentoo.org> CommitDate: 2023-06-22 13:15:09 +0000 app-portage/layman: treeclean Closes: https://bugs.gentoo.org/761199 Closes: https://bugs.gentoo.org/609720 Closes: https://bugs.gentoo.org/627930 Closes: https://bugs.gentoo.org/700742 Closes: https://bugs.gentoo.org/649766 Closes: https://bugs.gentoo.org/681144 Closes: https://bugs.gentoo.org/648374 Closes: https://bugs.gentoo.org/545568 Closes: https://bugs.gentoo.org/581890 Closes: https://bugs.gentoo.org/539336 Closes: https://bugs.gentoo.org/590132 Closes: https://bugs.gentoo.org/574190 Closes: https://bugs.gentoo.org/578992 Closes: https://bugs.gentoo.org/540012 Closes: https://bugs.gentoo.org/412883 Closes: https://bugs.gentoo.org/443880 Closes: https://bugs.gentoo.org/480884 Closes: https://bugs.gentoo.org/567386 Closes: https://bugs.gentoo.org/454604 Closes: https://bugs.gentoo.org/567384 Signed-off-by: Jakov Smolić <jsmolic@gentoo.org> app-portage/layman/Manifest | 1 - app-portage/layman/layman-2.4.3.ebuild | 100 --------------------------------- app-portage/layman/layman-9999.ebuild | 100 --------------------------------- app-portage/layman/metadata.xml | 24 -------- profiles/package.mask | 5 -- 5 files changed, 230 deletions(-)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=abfaed0b3460e638410c0fd74783f8d292d63afc commit abfaed0b3460e638410c0fd74783f8d292d63afc Author: Andreas K. Hüttel <dilfridge@gentoo.org> AuthorDate: 2023-09-08 00:41:10 +0000 Commit: Andreas K. Hüttel <dilfridge@gentoo.org> CommitDate: 2023-09-08 00:42:07 +0000 app-portage/layman: treeclan Closes: https://bugs.gentoo.org/761199 Closes: https://bugs.gentoo.org/609720 Closes: https://bugs.gentoo.org/627930 Closes: https://bugs.gentoo.org/700742 Closes: https://bugs.gentoo.org/649766 Closes: https://bugs.gentoo.org/681144 Closes: https://bugs.gentoo.org/648374 Closes: https://bugs.gentoo.org/545568 Closes: https://bugs.gentoo.org/581890 Closes: https://bugs.gentoo.org/539336 Closes: https://bugs.gentoo.org/590132 Closes: https://bugs.gentoo.org/574190 Closes: https://bugs.gentoo.org/578992 Closes: https://bugs.gentoo.org/540012 Closes: https://bugs.gentoo.org/412883 Closes: https://bugs.gentoo.org/443880 Closes: https://bugs.gentoo.org/480884 Closes: https://bugs.gentoo.org/567386 Closes: https://bugs.gentoo.org/454604 Closes: https://bugs.gentoo.org/567384 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org> app-portage/layman/Manifest | 1 - app-portage/layman/layman-2.4.3.ebuild | 100 --------------------------------- app-portage/layman/layman-9999.ebuild | 100 --------------------------------- app-portage/layman/metadata.xml | 24 -------- profiles/package.mask | 5 -- 5 files changed, 230 deletions(-)