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

error: failed to synchronize all databases (no servers configured for repository) #6

Open
TofuWand opened this issue Nov 22, 2023 · 33 comments

Comments

@TofuWand
Copy link

TofuWand commented Nov 22, 2023

Hi,

Thank you for reading this, and for the help.

"error: failed to synchronize all databases (no servers configured for repository)"
pacman -Syu or anything won't work.

I'm not able to use pacman at all with a fresh WSL2 version of Athena OS. I have even tried uncommenting some more servers than what were already uncommented at stock install. My WSL2 Kali works just fine (outside of seamless mode not showing the toolbar, which I cannot figure out how to fix [any help there would be much appreciated, and thanks if so]). I'm having to use a VPN to connect both of these WSL2 apps for them to work with Wi-Fi from the mall, but they work fine with my raw hotspot connection.

Kind regards,
TofuWand
Screenshot 2023-11-22 144638

@D3vil0p3r
Copy link
Member

Hey. Probably your mirrorlist is empty. Try to give a look to the contents of files inside /etc/pacman.d folder

@TofuWand
Copy link
Author

Hey. Probably your mirrorlist is empty. Try to give a look to the contents of files inside /etc/pacman.d folder

Hi. Thanks, but I already mentioned that servers exist, and that I even uncommented some more. I have played around with all the mirror text files.

@AbstractObsession
Copy link

Experiencing a very similar issue for the last day or so with pacman -Syyu.

error: failed retrieving file 'athena-theme-tweak-1.0.4-1-any.pkg.tar.zst' from hub.athenaos.org : The requested URL returned error: 404
error: failed retrieving file 'athena-mirrorlist-1.0.1-1-any.pkg.tar.zst' from hub.athenaos.org : The requested URL returned error: 404
warning: failed to retrieve some files
error: failed to commit transaction (failed to retrieve some files)
Errors occurred, no packages were upgraded.

error: failed retrieving file 'athena-repository.db' from github.com : The requested URL returned error: 404
error: failed retrieving file 'athena-repository.db' from github.com : The requested URL returned error: 404
error: failed retrieving file 'athena-repository.db' from hub.athenaos.org : The requested URL returned error: 404
error: failed to synchronize all databases (failed to retrieve some files)

@D3vil0p3r
Copy link
Member

@AbstractObsession edit /etc/pacman.conf, replace athena-repository by athena and run again sudo pacman -Syyu

@m1kethai
Copy link

@AbstractObsession edit /etc/pacman.conf, replace athena-repository by athena and run again sudo pacman -Syyu

This did the trick. Thanks.

@AbstractObsession
Copy link

@AbstractObsession edit /etc/pacman.conf, replace athena-repository by athena and run again sudo pacman -Syyu

This fixed one issue. Now when I run sudo pacman -Syyu I get the following issue:

error: could not open file /var/lib/pacman/sync/athena.db: Unrecognized archive format

@D3vil0p3r
Copy link
Member

Show me your /etc/pacman.d/athena-mirrorlist content

@AbstractObsession
Copy link

Show me your /etc/pacman.d/athena-mirrorlist content

/etc/pacman.d/athena-mirrorlist:

Global

Server = https://github.com/Athena-OS/athena-repository/tree/21c862c5930ba9834c732b0cc2639122e8218db3/x86_64

Lithuania

Server = https://hub.athenaos.org/athena/x86_64

@D3vil0p3r
Copy link
Member

Change the content of that file by:

# Global
Server = https://athena-os.github.io/$repo-repository/$arch

# Lithuania
Server = https://hub.athenaos.org/$repo/$arch

@AbstractObsession
Copy link

Thank you so much!

Now sudo pacman -Syyu is working perfectly.

Many thanks.

@TofuWand
Copy link
Author

Experiencing a very similar issue for the last day or so with pacman -Syyu.

error: failed retrieving file 'athena-theme-tweak-1.0.4-1-any.pkg.tar.zst' from hub.athenaos.org : The requested URL returned error: 404 error: failed retrieving file 'athena-mirrorlist-1.0.1-1-any.pkg.tar.zst' from hub.athenaos.org : The requested URL returned error: 404 warning: failed to retrieve some files error: failed to commit transaction (failed to retrieve some files) Errors occurred, no packages were upgraded.

error: failed retrieving file 'athena-repository.db' from github.com : The requested URL returned error: 404 error: failed retrieving file 'athena-repository.db' from github.com : The requested URL returned error: 404 error: failed retrieving file 'athena-repository.db' from hub.athenaos.org : The requested URL returned error: 404 error: failed to synchronize all databases (failed to retrieve some files)

Thanks a bunch! 🤝💯

@TofuWand
Copy link
Author

@AbstractObsession edit /etc/pacman.conf, replace athena-repository by athena and run again sudo pacman -Syyu

Thanks a bunch! 🤝💯

@TofuWand
Copy link
Author

Change the content of that file by:

# Global
Server = https://athena-os.github.io/$repo-repository/$arch

# Lithuania
Server = https://hub.athenaos.org/$repo/$arch

Thanks a bunch! 🤝💯

@TofuWand
Copy link
Author

TofuWand commented Dec 9, 2023

@AbstractObsession edit /etc/pacman.conf, replace athena-repository by athena and run again sudo pacman -Syyu

Screenshot 2023-12-09 134018 I tried that, with no avail.

@TofuWand
Copy link
Author

TofuWand commented Dec 9, 2023

@AbstractObsession edit /etc/pacman.conf, replace athena-repository by athena and run again sudo pacman -Syyu

I took out the "-repository" part.
Screenshot 2023-12-09 134131

@TofuWand
Copy link
Author

TofuWand commented Dec 9, 2023

Change the content of that file by:

# Global
Server = https://athena-os.github.io/$repo-repository/$arch

# Lithuania
Server = https://hub.athenaos.org/$repo/$arch
Screenshot 2023-12-09 134348

After trying that, I still have the repository issues.

@D3vil0p3r
Copy link
Member

Please share with me all the current details (i.e., error string, content of mirrorlist files and son on).

@TofuWand
Copy link
Author

TofuWand commented Dec 24, 2023

Thanks. I put it off for a while, as you see.

sudo pacman -Syyu
:: Synchronizing package databases...
error: failed to synchronize all databases (no servers configured for repository)

...

Note: The BlackArch mirrorlist is empty.

Screenshot 2023-12-24 171047 Screenshot 2023-12-24 170908 Screenshot 2023-12-24 170415 [chaotic-mirrorlist.txt](https://github.com/Athena-OS/athena-repository/files/13761336/chaotic-mirrorlist.txt)

I don't see the text file showing here.

Here is the text file, Chaotic-MirrorList:

       /etc/pacman.d/chaotic-mirrorlist## Special CDN mirror (delayed syncing, expect some (s># Globally
# * By: Garuda Linux donators, hosted on Cloudflare R2

# Automatic per-country routing of the mirrors below.
Server = https://geo-mirror.chaotic.cx/$repo/$arch

## Regular Syncthing mirrors (close to instant syncing)# Brazil
# * By: Universidade Federal de São Carlos (São Carlos)Server = https://br-mirror.chaotic.cx/$repo/$arch

# Bulgaria
# * By: Sudo Man <github.com/sakrayaami>

Please share with me all the current details (i.e., error string, content of mirrorlist files and son on).

@D3vil0p3r
Copy link
Member

That issue occurs when a mirrorlist file is empty. If BlackArch mirrorlist is empty, it means that something in your connection is preventing to reach BlackArch mirrors.

@TofuWand
Copy link
Author

That issue occurs when a mirrorlist file is empty. If BlackArch mirrorlist is empty, it means that something in your connection is preventing to reach BlackArch mirrors.

Hi, again. I've tried various things to fix the ping issue, since it won't ping anything but my local IP address. I tried flushing DNS, disabling firewall, changing the traffic settings in Hyper-V Manager, turning off and on some stuff in Windows Features, changing the nameserver (which won't let me edit it now that I did a remove of it), etc.

I did plenty of searching through threads.

microsoft/WSL#5336 (comment)
microsoft/WSL#4275
microsoft/WSL#7141
Etc.

Screenshot 2023-12-24 170908 @ Screenshot 2023-12-25 161459 Screenshot 2023-12-24 171047

@D3vil0p3r
Copy link
Member

Where are you from?

@TofuWand
Copy link
Author

Where are you from?

Do you recognize SM SUPERMALLS, or just curious? I'm in the Philippines, but I'm from Miami, FL, America, born and raised (I'm happy to have left infamous Miami lol).

What about you?

@D3vil0p3r
Copy link
Member

Where are you from?

Do you recognize SM SUPERMALLS, or just curious? I'm in the Philippines, but I'm from Miami, FL, America, born and raised (I'm happy to have left infamous Miami lol).

What about you?

I needed this info to understand if your govt could block some connections. If you visit https://raw.githubusercontent.com/BlackArch/blackarch/master/mirror/mirror.lst you get an issue or you can see the content of file?

@TofuWand
Copy link
Author

TofuWand commented Dec 25, 2023

Where are you from?

Do you recognize SM SUPERMALLS, or just curious? I'm in the Philippines, but I'm from Miami, FL, America, born and raised (I'm happy to have left infamous Miami lol).
What about you?

I needed this info to understand if your govt could block some connections. If you visit https://raw.githubusercontent.com/BlackArch/blackarch/master/mirror/mirror.lst you get an issue or you can see the content of file?

Interesting. Yeah, I've used multiple hacking OSs before, bare metal, and in VMs. I've had issues with BlackArch updates though before on BlackArch. I've also used Tor just fine here.

Yes, I was able to see the mirror list, nice.
Screenshot_20231226-002420

@D3vil0p3r
Copy link
Member

D3vil0p3r commented Dec 25, 2023

So it is strange it does not work. Can you try to install Athena again (only in case you get the error during the installation), and if it fails, try to visit that link from Athena machine and also share with me /tmp/aegis.log?

In case you don't get error during the installation but you get it in your installed environment, run:

sudo rate-mirrors --concurrency 40 --disable-comments --allow-root --save /etc/pacman.d/blackarch-mirrorlist blackarch

and then check if the blackarch-mirrorlist file is still empty.

@TofuWand
Copy link
Author

TofuWand commented Dec 26, 2023

So it is strange it does not work. Can you try to install Athena again (only in case you get the error during the installation), and if it fails, try to visit that link from Athena machine and also share with me /tmp/aegis.log?

In case you don't get error during the installation but you get it in your installed environment, run:

sudo rate-mirrors --concurrency 40 --disable-comments --allow-root --save /etc/pacman.d/blackarch-mirrorlist blackarch

and then check if the blackarch-mirrorlist file is still empty.

Thanks! I could try it again. Before I do, if I do, please see this:

Screenshot 2023-12-26 140352

Kali has the same issues. However, at least with Kali, I've been able to get Nuclei, and several other tools. They will connect, but not to the repositories, and not to 8.8.8.8 (Google), and other pings I do, other than when I ping my own IP, that I mentioned worked. I'm not sure if this newer information helps. I'm hoping to get WSL2 to work, since I have plenty of power on my new laptop, and I don't need to worry about browser tabs to run desktop-as-a-service, but I'll use that if this doesn't work.

Screenshot 2023-12-26 140659

If this newer information helps, then what might we do for any WSL2 to resolve these issues, outside of deleting, and reinstalling the WSL2 images.

Thanks!

@TofuWand
Copy link
Author

So it is strange it does not work. Can you try to install Athena again (only in case you get the error during the installation), and if it fails, try to visit that link from Athena machine and also share with me /tmp/aegis.log?

In case you don't get error during the installation but you get it in your installed environment, run:

sudo rate-mirrors --concurrency 40 --disable-comments --allow-root --save /etc/pacman.d/blackarch-mirrorlist blackarch

and then check if the blackarch-mirrorlist file is still empty.

Also, I started seeing this WSL connection/firewall yesterday:

Screenshot 2023-12-26 180513

@D3vil0p3r
Copy link
Member

D3vil0p3r commented Dec 26, 2023

Which nuclei issue?

Did you solve the failed synch of databases?

@TofuWand
Copy link
Author

Which nuclei issue?

Did you solve the failed synch of databases?

I don't have a Nuclei issue. I'm just showing how it works fine with tools. If I were to use it properly, I'd enter options for Nuclei, but that was to quickly run it for an example. The WSL2 app images still do not work with databases/repositories though.

@D3vil0p3r
Copy link
Member

Are you still getting the error in the title?

@TofuWand
Copy link
Author

TofuWand commented Dec 26, 2023 via email

@D3vil0p3r
Copy link
Member

[error: failed to synchronize all databases (no servers configured for repository)](https://github.com/Athena-OS/athena-repository/issues/6#top)

@TofuWand
Copy link
Author

TofuWand commented Dec 27, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants