Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileNotFoundError: [Errno 2] No such file or directory: 'pacman-mirrors' #117

Closed
tulliana opened this issue Jun 1, 2020 · 5 comments
Closed
Labels
0.9.4 0.9.5 bug Something isn't working staging

Comments

@tulliana
Copy link
Contributor

tulliana commented Jun 1, 2020

Bauh crashes when trying to update.

Terminal output:
[tulliana@tulliana-pc ~]$ bauh qt5ct: using qt5ct plugin qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 1312, resource id: 12836198, major code: 40 (TranslateCoords), minor code: 0 qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 1746, resource id: 12837721, major code: 40 (TranslateCoords), minor code: 0 Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/bauh/view/qt/thread.py", line 451, in run success = bool(self.manager.upgrade(requirements, root_password, self)) File "/usr/lib/python3.8/site-packages/bauh/view/core/controller.py", line 248, in upgrade res = man.upgrade(man_reqs, root_password, handler) File "/usr/lib/python3.8/site-packages/bauh/gems/arch/controller.py", line 871, in upgrade if not self._upgrade_repo_pkgs(pkgs=repo_pkgs_names, File "/usr/lib/python3.8/site-packages/bauh/gems/arch/controller.py", line 759, in _upgrade_repo_pkgs downloaded = self._download_packages(pkgs, handler, root_password, sizes) File "/usr/lib/python3.8/site-packages/bauh/gems/arch/controller.py", line 1638, in _download_packages return download_service.download_packages(pkgs=pkgnames, File "/usr/lib/python3.8/site-packages/bauh/gems/arch/download.py", line 123, in download_packages mirrors = pacman.list_available_mirrors() File "/usr/lib/python3.8/site-packages/bauh/gems/arch/pacman.py", line 1068, in list_available_mirrors _, output = system.run(['pacman-mirrors', '--status', '--no-color']) File "/usr/lib/python3.8/site-packages/bauh/commons/system.py", line 278, in run p = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) File "/usr/lib/python3.8/subprocess.py", line 489, in run with Popen(*popenargs, **kwargs) as process: File "/usr/lib/python3.8/subprocess.py", line 854, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] Böyle bir dosya ya da dizin yok: 'pacman-mirrors' İptal edildi (çekirdek döküldü)
FileNotFoundError: [Errno 2] No such file or directory: 'pacman-mirrors'

The mirror package is called pacman-mirrors but there is a mirrors file under /etc/pacman.d/ directory. Bauh should search the mirror list as mirrors, not pacman-mirrors

@vinifmor
Copy link
Owner

vinifmor commented Jun 1, 2020

@tulliana , pacman-mirrors is a program responsible for managing the mirrors set on your system. The real issue is that bauh is not validating if it is installed on your system. I'm going to provided a fix for this. For now you can either install pacman-mirrors or go to Settings > Arch and disable the option Multi-threaded download (repositories)

@vinifmor vinifmor added the bug Something isn't working label Jun 1, 2020
@vinifmor
Copy link
Owner

vinifmor commented Jun 1, 2020

Already fixed that on staging. I'm going to publish to AUR in a few hours. If you want to check the changes -> 5901c4c

@vinifmor
Copy link
Owner

vinifmor commented Jun 1, 2020

I've just published to AUR (bauh-staging > 0.9.5.RC-1). Could you give me a feedback if it is working now ?

@vinifmor vinifmor added the 0.9.4 label Jun 2, 2020
@vinifmor vinifmor mentioned this issue Jun 7, 2020
@vinifmor vinifmor added the 0.9.5 label Jun 7, 2020
@vinifmor vinifmor closed this as completed Jun 7, 2020
@SamLukeYes
Copy link

@tulliana , pacman-mirrors is a program responsible for managing the mirrors set on your system. The real issue is that bauh is not validating if it is installed on your system. I'm going to provided a fix for this. For now you can either install pacman-mirrors or go to Settings > Arch and disable the option Multi-threaded download (repositories)

As far as I know, pacman-mirrors is a Manjaro tool, and there's no way to install it on Arch Linux. A similar tool on Arch Linux is reflector.

@vinifmor
Copy link
Owner

Thanks for sharing this @SamLukeYes . I will have a look on reflector.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.9.4 0.9.5 bug Something isn't working staging
Projects
None yet
Development

No branches or pull requests

3 participants