Getting an error while updating the system

I’m updating the system as usual (via terminal) and am getting errors at the end of update.

There seems to be an issue with python-future package from aur. I’m not sure how to fix this. So here is what happens at first when I attempt to update:

Block :: Starting full system upgrade…
there is nothing to do
:: Searching AUR for updates…
→ Packages not in AUR: arcolinux-keyring arcolinux-mirrorlist-git rebornos-keyring rebornos-mirrorlist
:: 1 package to upgrade/install.
1 aur/python-future 1.0.0-2 → 1.0.0-4
==> Packages to exclude: (eg: “1 2 3”, “1-3”, “^4” or repo name)
→ Excluding packages may cause partial upgrades and break systems
==>
AUR Dependency (1): python-future-1.0.0-4
:: PKGBUILD up to date, skipping download: python-future
1 python-future (Installed) (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> i
:: Deleting (1/1): /home/jj/.cache/yay/python-future
HEAD is now at fcd4ac2 uncomment checkdeps
warning: could not open directory ‘pkg/’: Permission denied
Removing future-1.0.0.tar.gz
Removing pkg/
Removing src/
1 python-future (Installed) (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> n
==> Making package: python-future 1.0.0-4 (E 06 jaan 2025 03:19:51)
==> Retrieving sources…
→ Downloading future-1.0.0.tar.gz…

quote

and then comes the error:

Successfully built future-1.0.0-py3-none-any.whl
==> Starting check()...
================================ test session starts =================================
platform linux -- Python 3.13.1, pytest-8.3.4, pluggy-1.5.0 -- /usr/bin/python
cachedir: .pytest_cache
rootdir: /home/jj/.cache/yay/python-future/src/future-1.0.0
configfile: pytest.ini
collected 99 items / 1 error                                                         

======================================= ERRORS =======================================
________________ ERROR collecting tests/test_past/test_translation.py ________________
ImportError while importing test module '/home/jj/.cache/yay/python-future/src/future-1.0.0/tests/test_past/test_translation.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_past/test_translation.py:21: in <module>
    from past.translation import install_hooks, remove_hooks, common_substring
build/lib/past/translation/__init__.py:44: in <module>
    from lib2to3.pgen2.parse import ParseError
E   ModuleNotFoundError: No module named 'lib2to3'
================================== warnings summary ==================================
build/lib/future/backports/test/support.py:1945
  /home/jj/.cache/yay/python-future/src/future-1.0.0/build/lib/future/backports/test/support.py:1945: SyntaxWarning: invalid escape sequence '\d'
    m = re.match("2.6.(\d{1,2})", kernel_version)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
============================== short test summary info ===============================
ERROR tests/test_past/test_translation.py
!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!
============================ 1 warning, 1 error in 0.22s =============================
==> ERROR: A failure occurred in check().
    Aborting...
 -> error making: python-future-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
python-future - exit status 4

Have a look here I think it may help

1 Like

For the Python-Future error, this worked for me. Run the following in the order below…

paccache -r CLEAN CACHE (All Packages)
paccache -ruk0 CLEAN CACHE (Uninstalled Packages)
yay -Yc REMOVE ORPHANS
yay -Syyu SYSTEM UPDATE

  • This worked for ME. Obviously, your mileage may vary.
1 Like

And for your info, this is a build error (ie complilation), it is not a system update error.