# LinuxMirrors_1 **Repository Path**: chonger0819/LinuxMirrors_1 ## Basic Information - **Project Name**: LinuxMirrors_1 - **Description**: GNU/Linux 一键更换系统软件源脚本 - **Primary Language**: Shell - **License**: MIT - **Default Branch**: main - **Homepage**: https://linuxmirrors.cn - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 109 - **Created**: 2024-09-07 - **Last Updated**: 2025-03-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

LinuxMirrors

GNU/Linux 更换系统软件源脚本及 Docker 安装脚本

官方网站

 Debian 8.0 ~ 13
 Ubuntu 14.04 ~ 24
 Kali Linux 2.0 ~ 2024
 Linux Mint 19.0 ~ 21 / LMDE 6
 Deepin all
 Armbian all
 Proxmox all
 Red Hat Enterprise Linux 7.0 ~ 9
 Fedora 30 ~ 40
 CentOS 7.0 ~ 8.5 / Stream 8 ~ 9
 Rocky Linux 8 ~ 9
 AlmaLinux 8 ~ 9
 OpenCloudOS 8 ~ 9
 openEuler 21.03 ~ 24
 openSUSE Leep 15 / Tumbleweed
 Arch Linux all
 Alpine Linux v3 / edge
 Gentoo all

使用方法    软件源列表    常见问题    Docker 安装(额外脚本)

*** 这是一个完全开源的非盈利项目,旨在为从事计算机相关行业的朋友们提供便利,让换源更简单 ### LICENSE Copyright © 2024, [SuperManito](https://github.com/SuperManito). Released under the [MIT](https://github.com/SuperManito/LinuxMirrors/blob/main/LICENSE). Star History Chart __如果您觉得这个项目不错对您有所帮助的话,方便在右上角给颗 ⭐ 并分享给更多的朋友吗?__ ``` Windows与Linux换行符差异导致 在Windows下编写的bash文件,如果直接在Linux下运行,可能会因为换行符的不同而出现问题。Windows系统的文件换行使用的是\r\n,而Linux系统是\n。当bash脚本换行符为\r\n,在Linux下执行需要换行符为\n时就可能执行不了。比如在Windows下编写好sh文件后,在Linux下运行可能会报错,像bash:$'\r':command not found或者/bin/sh^M: bad interpreter等错误23。 解决方法有: 使用vim打开文件,然后使用命令:set ff=unix,再保存文件:wq。 也可以使用sed -i 's/\r//' [文件名]或者dos2unix [文件名]来去除\r字符 ```