@@ -953,6 +953,10 @@ Sys_Version(){
953953 * " Ubuntu" * |* " ubuntu" * )
954954 Linux_Version=" Ubuntu"
955955 case $( cat /etc/* -release | head -n 4) in
956+ * " oracular" * )
957+ Linux_Version_Num=" 24.10"
958+ Linux_Version_Name=" oracular"
959+ ;;
956960 * " noble" * )
957961 Linux_Version_Num=" 24.04"
958962 Linux_Version_Name=" noble"
@@ -1268,6 +1272,31 @@ Update_APT_Mirror(){
12681272 ;;
12691273 * " Ubuntu" * )
12701274 case $Linux_Version_Num in
1275+ " 24.10" )
1276+ Echo_INFOR " Ubuntu24.10"
1277+ Echo_INFOR " Backed up apt source"
1278+ Update_Ubuntu2410_Mirror " $1 " > /dev/null
1279+ ;;
1280+ " 24.04" )
1281+ Echo_INFOR " Ubuntu24.04"
1282+ Echo_INFOR " Backed up apt source"
1283+ Update_Ubuntu2404_Mirror " $1 " > /dev/null
1284+ ;;
1285+ " 23.10" )
1286+ Echo_INFOR " Ubuntu23.10"
1287+ Echo_INFOR " Backed up apt source"
1288+ Update_Ubuntu2310_Mirror " $1 " > /dev/null
1289+ ;;
1290+ " 23.04" )
1291+ Echo_INFOR " Ubuntu23.04"
1292+ Echo_INFOR " Backed up apt source"
1293+ Update_Ubuntu2304_Mirror " $1 " > /dev/null
1294+ ;;
1295+ " 22.10" )
1296+ Echo_INFOR " Ubuntu22.10"
1297+ Echo_INFOR " Backed up apt source"
1298+ Update_Ubuntu2210_Mirror " $1 " > /dev/null
1299+ ;;
12711300 " 22.04" )
12721301 Echo_INFOR " Ubuntu22.04"
12731302 Echo_INFOR " Backed up apt source"
@@ -1407,6 +1436,136 @@ fi
14071436}
14081437
14091438# ===================== Modify Ubuntu apt sources =====================
1439+ Update_Ubuntu2410_Mirror (){
1440+ rm -f /etc/apt/sources.list.bak > /dev/null 2>&1 && cp /etc/apt/sources.list /etc/apt/sources.list.bak > /dev/null 2>&1
1441+
1442+ if [ $1 == aliyun ] 2>> /tmp/f8x_error.log
1443+ then
1444+
1445+ tee /etc/apt/sources.list << -'EOF '
1446+ deb http://mirrors.aliyun.com/ubuntu/ oracular main restricted universe multiverse
1447+ deb http://mirrors.aliyun.com/ubuntu/ oracular-updates main restricted universe multiverse
1448+ deb http://mirrors.aliyun.com/ubuntu/ oracular-backports main restricted universe multiverse
1449+ deb http://mirrors.aliyun.com/ubuntu/ oracular-security main restricted universe multiverse
1450+ EOF
1451+
1452+ else
1453+
1454+ tee /etc/apt/sources.list << -'EOF '
1455+ deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ oracular main restricted universe multiverse
1456+ deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ oracular-updates main restricted universe multiverse
1457+ deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ oracular-backports main restricted universe multiverse
1458+ deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ oracular-security main restricted universe multiverse
1459+ EOF
1460+
1461+ fi
1462+
1463+ }
1464+
1465+ Update_Ubuntu2404_Mirror (){
1466+ rm -f /etc/apt/sources.list.bak > /dev/null 2>&1 && cp /etc/apt/sources.list /etc/apt/sources.list.bak > /dev/null 2>&1
1467+
1468+ if [ $1 == aliyun ] 2>> /tmp/f8x_error.log
1469+ then
1470+
1471+ tee /etc/apt/sources.list << -'EOF '
1472+ deb http://mirrors.aliyun.com/ubuntu/ noble main restricted universe multiverse
1473+ deb http://mirrors.aliyun.com/ubuntu/ noble-updates main restricted universe multiverse
1474+ deb http://mirrors.aliyun.com/ubuntu/ noble-backports main restricted universe multiverse
1475+ deb http://mirrors.aliyun.com/ubuntu/ noble-security main restricted universe multiverse
1476+ EOF
1477+
1478+ else
1479+
1480+ tee /etc/apt/sources.list << -'EOF '
1481+ deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ noble main restricted universe multiverse
1482+ deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ noble-updates main restricted universe multiverse
1483+ deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ noble-backports main restricted universe multiverse
1484+ deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ noble-security main restricted universe multiverse
1485+ EOF
1486+
1487+ fi
1488+
1489+ }
1490+
1491+ Update_Ubuntu2310_Mirror (){
1492+ rm -f /etc/apt/sources.list.bak > /dev/null 2>&1 && cp /etc/apt/sources.list /etc/apt/sources.list.bak > /dev/null 2>&1
1493+
1494+ if [ $1 == aliyun ] 2>> /tmp/f8x_error.log
1495+ then
1496+
1497+ tee /etc/apt/sources.list << -'EOF '
1498+ deb http://mirrors.aliyun.com/ubuntu/ mantic main restricted universe multiverse
1499+ deb http://mirrors.aliyun.com/ubuntu/ mantic-updates main restricted universe multiverse
1500+ deb http://mirrors.aliyun.com/ubuntu/ mantic-backports main restricted universe multiverse
1501+ deb http://mirrors.aliyun.com/ubuntu/ mantic-security main restricted universe multiverse
1502+ EOF
1503+
1504+ else
1505+
1506+ tee /etc/apt/sources.list << -'EOF '
1507+ deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ mantic main restricted universe multiverse
1508+ deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ mantic-updates main restricted universe multiverse
1509+ deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ mantic-backports main restricted universe multiverse
1510+ deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ mantic-security main restricted universe multiverse
1511+ EOF
1512+
1513+ fi
1514+
1515+ }
1516+
1517+ Update_Ubuntu2304_Mirror (){
1518+ rm -f /etc/apt/sources.list.bak > /dev/null 2>&1 && cp /etc/apt/sources.list /etc/apt/sources.list.bak > /dev/null 2>&1
1519+
1520+ if [ $1 == aliyun ] 2>> /tmp/f8x_error.log
1521+ then
1522+
1523+ tee /etc/apt/sources.list << -'EOF '
1524+ deb http://mirrors.aliyun.com/ubuntu/ lunar main restricted universe multiverse
1525+ deb http://mirrors.aliyun.com/ubuntu/ lunar-updates main restricted universe multiverse
1526+ deb http://mirrors.aliyun.com/ubuntu/ lunar-backports main restricted universe multiverse
1527+ deb http://mirrors.aliyun.com/ubuntu/ lunar-security main restricted universe multiverse
1528+ EOF
1529+
1530+ else
1531+
1532+ tee /etc/apt/sources.list << -'EOF '
1533+ deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ lunar main restricted universe multiverse
1534+ deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ lunar-updates main restricted universe multiverse
1535+ deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ lunar-backports main restricted universe multiverse
1536+ deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ lunar-security main restricted universe multiverse
1537+ EOF
1538+
1539+ fi
1540+
1541+ }
1542+
1543+ Update_Ubuntu2210_Mirror (){
1544+ rm -f /etc/apt/sources.list.bak > /dev/null 2>&1 && cp /etc/apt/sources.list /etc/apt/sources.list.bak > /dev/null 2>&1
1545+
1546+ if [ $1 == aliyun ] 2>> /tmp/f8x_error.log
1547+ then
1548+
1549+ tee /etc/apt/sources.list << -'EOF '
1550+ deb http://mirrors.aliyun.com/ubuntu/ kinetic main restricted universe multiverse
1551+ deb http://mirrors.aliyun.com/ubuntu/ kinetic-updates main restricted universe multiverse
1552+ deb http://mirrors.aliyun.com/ubuntu/ kinetic-backports main restricted universe multiverse
1553+ deb http://mirrors.aliyun.com/ubuntu/ kinetic-security main restricted universe multiverse
1554+ EOF
1555+
1556+ else
1557+
1558+ tee /etc/apt/sources.list << -'EOF '
1559+ deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ kinetic main restricted universe multiverse
1560+ deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ kinetic-updates main restricted universe multiverse
1561+ deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ kinetic-backports main restricted universe multiverse
1562+ deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ kinetic-security main restricted universe multiverse
1563+ EOF
1564+
1565+ fi
1566+
1567+ }
1568+
14101569Update_Ubuntu2204_Mirror (){
14111570rm -f /etc/apt/sources.list.bak > /dev/null 2>&1 && cp /etc/apt/sources.list /etc/apt/sources.list.bak > /dev/null 2>&1
14121571
@@ -7173,7 +7332,7 @@ Ruby_Install_f(){
71737332 echo -e " \033[1;33m\n>> Installing Ruby\n\033[0m"
71747333 cd $T_Dir && rm -f $Ruby_bin > /dev/null 2>&1 && $Proxy_OK wget https://cache.ruby-lang.org/pub/ruby/$Ruby_Ver /$Ruby_bin ${wget_option} || Echo_ERROR2
71757334 tar xvfvz $Ruby_bin > /dev/null 2>&1
7176- cd $Ruby_Dir && ./configure > /dev/null 2>&1 && make > /dev/null 2>&1 && make install > /dev/null 2>&1 && Echo_INFOR " Successfully installed $( ruby -v) in the /usr/local/bin/" || Echo_ERROR3
7335+ cd $Ruby_Dir && ./configure && make && make install && Echo_INFOR " Successfully installed $( ruby -v) in the /usr/local/bin/" || Echo_ERROR3
71777336 rm -f $T_Dir /$Ruby_bin
71787337
71797338}
0 commit comments