Repository: miurahr/aqtinstall

Issue #599: Error installing Qt on Ubuntu 20.04
Created: 2022-10-28T11:17:15Z
Describe the bug
Code threw a bug when installing Qt 5.12
To Reproduce
Steps to reproduce the behavior:
These are the commands I followed. I got the error at the last command, in Qt 5.12 section.



Expected behavior
I expected the Qt installation to proceed without errors.
aqt output
Add program output to help explain your problem.
:~$ python3 -m aqt install 5.12.11 linux desktop -O /opt/qt -m all
INFO    : aqtinstall(aqt) v3.0.2 on Python 3.8.10 [CPython GCC 9.4.0]
WARNING : The command 'install' is deprecated and marked for removal in a future version of aqt.
In the future, please use the command 'install-qt' instead.
INFO    : Downloading qtquickcontrols...
INFO    : Downloading qtgraphicaleffects...
INFO    : Downloading qttools...
INFO    : Downloading qtbase...
INFO    : Redirected: mirrors.ukfast.co.uk
INFO    : Redirected: mirrors.ukfast.co.uk
INFO    : Redirected: mirrors.ukfast.co.uk
INFO    : Redirected: mirrors.ukfast.co.uk
INFO    : Downloading qtserialbus...
INFO    : Redirected: mirrors.ukfast.co.uk
INFO    : Downloading qtremoteobjects...
INFO    : Downloading qtcharts...
INFO    : Redirected: mirrors.ukfast.co.uk
INFO    : Redirected: mirrors.ukfast.co.uk
INFO    : Downloading qtconnectivity...
INFO    : Redirected: mirrors.ukfast.co.uk
INFO    : Downloading qtgraphicaleffects...
INFO    : Downloading qttools...
INFO    : Redirected: mirrors.ukfast.co.uk
INFO    : Redirected: mirrors.ukfast.co.uk
INFO    : Downloading qtquickcontrols...
INFO    : Redirected: mirrors.ukfast.co.uk
INFO    : Downloading qtserialbus...
INFO    : Redirected: mirrors.ukfast.co.uk
INFO    : Downloading qtremoteobjects...
INFO    : Redirected: mirrors.ukfast.co.uk
INFO    : Downloading qtpurchasing...
INFO    : Redirected: mirrors.ukfast.co.uk
WARNING : Caught PermissionError, terminating installer workers
ERROR   : [Errno 13] Permission denied: '/opt/qt'
Traceback (most recent call last):
  File "/home/_username_/.local/lib/python3.8/site-packages/aqt/installer.py", line 108, in run
    args.func(args)
  File "/home/_username_/.local/lib/python3.8/site-packages/aqt/installer.py", line 348, in run_install_qt
    run_installer(qt_archives.get_packages(), base_dir, sevenzip, keep, _archive_dest)
  File "/home/_username_/.local/lib/python3.8/site-packages/aqt/installer.py", line 1058, in run_installer
    raise e from e
  File "/home/_username_/.local/lib/python3.8/site-packages/aqt/installer.py", line 1034, in run_installer
    pool.starmap(installer, tasks)
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 372, in starmap
    return self._map_async(func, iterable, starmapstar, chunksize).get()
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 771, in get
    raise self._value
PermissionError: [Errno 13] Permission denied: '/opt/qt'
ERROR   : aqtinstall(aqt) v3.0.2 on Python 3.8.10 [CPython GCC 9.4.0]
Working dir: `/home/_username_`
Arguments: `['/home/_username_/.local/lib/python3.8/site-packages/aqt/__main__.py', 'install', '5.12.11', 'linux', 'desktop', '-O', '/opt/qt', '-m', 'all']` Host: `uname_result(system='Linux', node='DYSIS-DEV-001', release='5.15.0-52-generic', version='#58~20.04.1-Ubuntu SMP Thu Oct 13 13:09:46 UTC 2022', machine='x86_64', processor='x86_64')`
===========================PLEASE FILE A BUG REPORT===========================
You have discovered a bug in aqt.
Please file a bug report at https://github.com/miurahr/aqtinstall/issues.

Desktop (please complete the following information):

OS: [Ubuntu 20.04 LTS]
aqt version: aqtinstall(aqt) v3.0.2 on Python 3.8.10 [CPython GCC 9.4.0]

Additional context
Add any other context about the problem here.

Duplicate issue #667:  ERROR - installer 140634071766848 [Errno 13] Permission denied:
Created: 2023-04-03T09:16:51Z
Hi, hit this error when uninstalling Qt5.12.12 on Ubuntu 20.04, from my home directory:
Command executed: ./MaintenanceTool -> "Remove all"
Error returned:  aqt.main - ERROR - installer 140634071766848 [Errno 13] Permission denied: '/opt/qt
Log file attached.
aqtinstall.log

Closing comment (2023-04-03T10:17:33Z): Duplicates #599