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

On CutefishOS, the DNS and /etc/apt/sources.list are set for China, and don't work well outside China #20

Open
rdrms opened this issue Dec 1, 2021 · 0 comments

Comments

@rdrms
Copy link

rdrms commented Dec 1, 2021

Hello, this may be miscategorized, but I couldn't find any issue tracker for the CutefishOS ISO that you released (0.6 Beta)

I just installed a fresh copy in a VM, and when I did, I noticed that the DNS was wrong, while websites would load I could not update using "apt get update" because both the Debian mirror and DNS settings appear to be hard coded for Chinese usage.

Updating the DNS to use a known good Western DNS server (8.8.8.8 and 8.8.4.4), disabling IPv6 (potentially unneeded) and changing the sources.list file to be like in this link fixed it:

/etc/apt/sources.list

deb http://deb.debian.org/debian bullseye main contrib non-free
deb-src http://deb.debian.org/debian bullseye main contrib non-free

deb http://deb.debian.org/debian-security/ bullseye-security main contrib non-free
deb-src http://deb.debian.org/debian-security/ bullseye-security main contrib non-free

deb http://deb.debian.org/debian bullseye-updates main contrib non-free
deb-src http://deb.debian.org/debian bullseye-updates main contrib non-free

The commands used for editing the DNS and IPv6 settings were nmcli and are as follows, in case anyone is running into the same issue.

nmcli connection show # find the UUID (long charcter set of letters/numbers) of your connection and copy it, used in next three commands)
nmcli connection modify <uuid> ipv4.dns "8.8.8.8 8.8.4.4" # replace <uuid> with your connection's UUID, this changes the DNS to 8.8.8.8 and 8.8.4.4 which I believe are cloudflare or similar
nmcli connection modify <uuid> ipv6.method "disabled"  #replace <uuid> with your connecctions UUID, this disables IPv6 (potentially uneeded)
nmcli connection up <uuid> #replace <uuid> with your connection's uuid, this brings the connection up with the new settings
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

1 participant