如果想再次进入pvetools:echo “nameserver 8.8.8.8“ >> /etc/resolv.conf && rm -rf pvetools && rm -rf /etc/apt

解决pvetools入口问题

第二次无法进入:

方法:

1. 删除现有的符号链接或文件

如果你确认 /usr/local/bin/pvetools 只是之前的一个旧符号链接,可以将其删除,然后重新创建新的符号链接:

rm /usr/local/bin/pvetools ln -s /root/pvetools/pvetools /usr/local/bin/pvetools 

2. 强制覆盖符号链接

如果你想直接覆盖现有的符号链接,可以使用 -f 选项强制覆盖:

ln -sf /root/pvetools/pvetools /usr/local/bin/pvetools 

3. 检查现有文件

如果 /usr/local/bin/pvetools 不是一个符号链接,而是一个普通文件或目录,先查看这个文件的内容,然后根据需要决定是否删除或重命名:

ls -l /usr/local/bin/pvetools 

如果确认无误,可以删除或重命名它,再创建新的符号链接。

=> ERROR [ 2/16] RUN apt-get update && apt-get install -y openjdk-17-jdk maven libssl-dev binutils wget && rm -rf /var/lib/apt/lists/* 20.1s ------ > [ 2/16] RUN apt-get update && apt-get install -y openjdk-17-jdk maven libssl-dev binutils wget && rm -rf /var/lib/apt/lists/*: 0.944 Get:1 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB] 1.254 Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [128 kB] 2.445 Get:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease [128 kB] 3.198 Get:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease [128 kB] 3.727 Get:5 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [177 kB] 4.308 Get:6 http://archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [33.4 kB] 4.401 Get:7 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [1275 kB] 6.791 Get:8 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB] 18.57 Reading package lists... 19.95 E: Release file for http://security.ubuntu.com/ubuntu/dists/focal-security/InRelease is not valid yet (invalid for another 5h 12min 40s). Updates for this repository will not be applied. 19.95 E: Release file for http://archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease is not valid yet (invalid for another 9h 45min 22s). Updates for this repository will not be applied. 19.95 E: Release file for http://archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease is not valid yet (invalid for another 5h 20min 28s). Updates for this repository will not be applied. ------ Dockerfile-cloud:7 -------------------- 6 | # 安装必要的依赖 sed -i 's|http://.*ubuntu.com|https://mirrors.aliyun.com|g' /etc/apt/sources.list \ 7 | >>> RUN apt-get update && apt-get install -y \ 8 | >>> openjdk-17-jdk \ 9 | >>> maven \ 10 | >>> libssl-dev \ 11 | >>> binutils \ 12 | >>> wget \ 13 | >>> && rm -rf /var/lib/apt/lists/* 14 | RUN wget -O libssl.deb http://mirrors.edge.kernel.org/ubuntu/pool/main/o/openssl1.0/libssl1.0.0_1.0.2n-1ubuntu5_amd64.deb && \ -------------------- ERROR: failed to solve: process "/bin/sh -c apt-get update && apt-get install -y openjdk-17-jdk maven libssl-dev binutils wget && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100 无法部署 'im-server Dockerfile: im-server/Dockerfile-cloud': Image build failed with exit code 1.
06-12
[root@ceph ~]# sudo dnf clean all 0 files removed [root@ceph ~]# sudo rm -rf /var/cache/dnf/ceph-* [root@ceph ~]# sudo sed -i \ > -e 's|mirrors.aliyun.com|repo.huaweicloud.com|g' \ > /etc/yum.repos.d/ceph.repo [root@ceph ~]# sudo tee /etc/dnf/dnf.conf <<'EOF' > [main] > max_parallel_downloads=10 # 并行下载线程数 > fastestmirror=true # 启用最快镜像选择 > metadata_timer_sync=600 # 元数据缓存有效期(秒) > EOF [main] max_parallel_downloads=10 # 并行下载线程数 fastestmirror=true # 启用最快镜像选择 metadata_timer_sync=600 # 元数据缓存有效期(秒) [root@ceph ~]# time sudo dnf --refresh makecache Invalid configuration value: fastestmirror=true # 启用最快镜像选择 in /etc/dnf/dnf.conf; invalid boolean value 'true # 启用最快镜像选择' Invalid configuration value: metadata_timer_sync=600 # 元数据缓存有效期(秒) in /etc/dnf/dnf.conf; could not convert '600 # 元数据缓存有效期(秒)' to seconds Ceph Quincy for RockyLinux 8 1.2 kB/s | 394 B 00:00 Errors during downloading metadata for repository 'ceph-quincy': - Status code: 404 for https://repo.huaweicloud.com/ceph/rpm-quincy/el8/x86_64/repodata/repomd.xml (IP: 59.39.0.153) Error: Failed to download metadata for repo 'ceph-quincy': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried real 0m0.570s user 0m0.202s sys 0m0.035s [root@ceph ~]# echo "nameserver 223.5.5.5" | sudo tee -a /etc/resolv.conf # 阿里DNS nameserver 223.5.5.5 [root@ceph ~]# echo "nameserver 8.8.8.8" | sudo tee -a /etc/resolv.conf # Google DNS nameserver 8.8.8.8 [root@ceph ~]# systemctl restart systemd-resolved [root@ceph ~]# time sudo dnf --refresh makecache Invalid configuration value: fastestmirror=true # 启用最快镜像选择 in /etc/dnf/dnf.conf; invalid boolean value 'true # 启用最快镜像选择' Invalid configuration value: metadata_timer_sync=600 # 元数据缓存有效期(秒) in /etc/dnf/dnf.conf; could not convert '600 # 元数据缓存有效期(秒)' to seconds Ceph Quincy for RockyLinux 8 1.4 kB/s | 394 B 00:00 Errors during downloading metadata for repository 'ceph-quincy': - Status code: 404 for https://repo.huaweicloud.com/ceph/rpm-quincy/el8/x86_64/repodata/repomd.xml (IP: 59.39.0.152) Error: Failed to download metadata for repo 'ceph-quincy': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried real 0m0.491s user 0m0.183s sys 0m0.034s
09-16
~ $ pkg update && pkg upgrade -y No mirror or mirror group selected. You might want to select one by running 'termux-change-repo' Testing the available mirrors: [*] (10) https://packages-cf.termux.dev/apt/termux-main: ok [*] (1) https://mirror.meowsmp.net/termux/termux-main: ok [*] (1) https://mirror.nevacloud.com/applications/termux/termux-main: ok [*] (1) https://mirrors.saswata.cc/termux/termux-main: ok [*] (1) https://tmx.xvx.my.id/apt/termux-main: ok [*] (1) https://mirrors.krnk.org/apt/termux/termux-main: ok [*] (1) https://termux.niranjan.co/termux-main: ok [*] (1) https://mirror.textcord.xyz/termux/termux-main: bad [*] (1) https://mirror.bardia.tech/termux/termux-main: bad [*] (1) https://mirror.twds.com.tw/termux/termux-main: ok [*] (1) https://mirror.albony.in/termux/termux-main: ok [*] (1) https://mirrors.cbrx.io/apt/termux/termux-main: ok [*] (1) https://mirror.jeonnam.school/termux/termux-main: ok [*] (1) https://mirror.rinarin.dev/termux/termux-main: ok [*] (1) https://mirror.freedif.org/termux/termux-main: ok [*] (1) https://linux.domainesia.com/applications/termux/termux-main: ok [*] (1) https://mirrors.ravidwivedi.in/termux/termux-main: ok [*] (1) https://mirrors.nguyenhoang.cloud/termux/termux-main: ok [*] (1) https://mirrors.in.sahilister.net/termux/termux-main/: bad [*] (1) https://mirrors.sdu.edu.cn/termux/termux-main: ok [*] (1) https://mirrors.hust.edu.cn/termux/apt/termux-main: ok [*] (1) https://mirrors.nju.edu.cn/termux/apt/termux-main: ok [*] (1) https://mirrors.cernet.edu.cn/termux/apt/termux-main: ok [*] (1) https://mirror.nyist.edu.cn/termux/apt/termux-main: ok [*] (1) https://mirrors.cqupt.edu.cn/termux/termux-main: ok [*] (1) https://mirror.iscas.ac.cn/termux/apt/termux-main: ok [*] (1) https://mirrors.sau.edu.cn/termux/apt/termux-main: ok [*] (1) https://mirrors.pku.edu.cn/termux/termux-main/: ok [*] (1) https://mirrors.tuna.tsinghua.edu.cn/termux/apt/termux-main: ok [*] (1) https://mirrors.bfsu.edu.cn/termux/apt/termux-main: ok [*] (1) https://mirrors.zju.edu.cn/termux/apt/termux-main: ok [*] (1) https://mirrors.sustech.edu.cn/termux/apt/termux-main: bad [*] (1) https://mirror.sjtu.edu.cn/termux/termux-main/: bad [*] (1) https://mirrors.aliyun.com/termux/termux-main: ok [*] (1) https://mirrors.ustc.edu.cn/termux/termux-main: ok [*] (1) https://packages.termux.dev/apt/termux-main: ok [*] (1) https://ro.mirror.flokinet.net/termux/termux-main: ok [*] (1) https://termux.cdn.lumito.net/termux-main: ok [*] (1) https://nl.mirror.flokinet.net/termux/termux-main: ok [*] (1) https://mirror.sunred.org/termux/termux-main: ok [*] (1) https://mirror.mwt.me/termux/main: ok [*] (1) https://ftp.fau.de/termux/termux-main: ok [*] (1) https://ftp.agdsn.de/termux/termux-main: ok [*] (1) https://mirrors.de.sahilister.net/termux/termux-main: ok [*] (4) https://grimler.se/termux/termux-main: ok [*] (1) https://mirror.polido.pt/termux/termux-main: bad [*] (1) https://termux.3san.dev/termux/termux-main: ok [*] (1) https://mirrors.medzik.dev/termux/termux-main: ok [*] (1) https://termux.mentality.rip/termux-main: ok [*] (1) https://mirror.leitecastro.com/termux/termux-main: ok [*] (1) https://termux.librehat.com/apt/termux-main: ok [*] (1) https://md.mirrors.hacktegic.com/termux/termux-main: ok [*] (1) https://mirrors.cfe.re/termux/termux-main: bad [*] (1) https://mirror.accum.se/mirror/termux.dev/termux-main: ok [*] (1) https://mirror.autkin.net/termux/termux-main: ok [*] (1) https://mirror.bouwhuis.network/termux/termux-main: ok [*] (1) https://is.mirror.flokinet.net/termux/termux-main: ok [*] (1) https://mirror.termux.dev/termux-main: bad [*] (1) https://plug-mirror.rcac.purdue.edu/termux/termux-main: bad [*] (1) https://mirrors.utermux.dev/termux/termux-main: ok [*] (1) https://dl.kcubeterm.com/termux-main: bad [*] (1) https://termux.danyael.xyz/termux/termux-main: ok [*] (1) https://gnlug.org/pub/termux/termux-main: ok [*] (1) https://mirror.vern.cc/termux/termux-main: bad [*] (1) https://mirror.csclub.uwaterloo.ca/termux/termux-main: ok [*] (1) https://mirror.mwt.me/termux/main: ok [*] (1) https://mirror.quantum5.ca/termux/termux-main: ok [*] (1) https://mirror.fcix.net/termux/termux-main: ok [*] (1) https://mirrors.middlendian.com/termux/termux-main: ok [*] (1) http://mirror.mephi.ru/termux/termux-main: ok [*] (1) https://repository.su/termux/termux-main/: bad Picking mirror: (24) /data/data/com.termux/files/usr/etc/termux/mirrors/asia/mirrors.nguyenhoang.cloud Get:1 https://mirrors.nguyenhoang.cloud/termux/termux-main stable InRelease [14.0 kB] Get:3 https://mirrors.nguyenhoang.cloud/termux/termux-main stable/main aarch64 Packages [527 kB] Get:2 https://turdl.kcubeterm.com tur-packages InRelease [18.4 kB] Get:4 https://turdl.kcubeterm.com tur-packages/tur aarch64 Packages [72.4 kB] Ign:4 https://turdl.kcubeterm.com tur-packages/tur aarch64 Packages Get:4 https://turdl.kcubeterm.com tur-packages/tur aarch64 Packages [72.4 kB] Ign:4 https://turdl.kcubeterm.com tur-packages/tur aarch64 Packages Get:4 https://turdl.kcubeterm.com tur-packages/tur aarch64 Packages [72.4 kB] Ign:4 https://turdl.kcubeterm.com tur-packages/tur aarch64 Packages Ign:4 https://turdl.kcubeterm.com tur-packages/tur aarch64 Packages Err:4 https://turdl.kcubeterm.com tur-packages/tur aarch64 Packages Connection timed out [IP: 2606:50c0:8001::153 443] Get:4 https://turdl.kcubeterm.com tur-packages/tur aarch64 Packages [223 kB] Fetched 783 kB in 3min 18s (3950 B/s) Reading package lists... Done Building dependency tree... Done Reading state information... Done 5 packages can be upgraded. Run 'apt list --upgradable' to see them. No mirror or mirror group selected. You might want to select one by running 'termux-change-repo' Checking availability of current mirror: [*] https://mirrors.nguyenhoang.cloud/termux/termux-main: ok Hit:2 https://mirrors.nguyenhoang.cloud/termux/termux-main stable InRelease Hit:1 https://turdl.kcubeterm.com tur-packages InRelease Reading package lists... Done Building dependency tree... Done Reading state information... Done 5 packages can be upgraded. Run 'apt list --upgradable' to see them. Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: bash command-not-found libsqlite readline termux-keyring 5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 2025 kB of archives. After this operation, 1323 kB of additional disk space will be used. Get:1 https://mirrors.nguyenhoang.cloud/termux/termux-main stable/main aarch64 readline aarch64 8.3 [294 kB] Get:2 https://mirrors.nguyenhoang.cloud/termux/termux-main stable/main aarch64 bash aarch64 5.3 [956 kB] Get:3 https://mirrors.nguyenhoang.cloud/termux/termux-main stable/main aarch64 termux-keyring all 3.13 [39.8 kB] Get:4 https://mirrors.nguyenhoang.cloud/termux/termux-main stable/main aarch64 command-not-found aarch64 3.1-2 [101 kB] Get:5 https://mirrors.nguyenhoang.cloud/termux/termux-main stable/main aarch64 libsqlite aarch64 3.50.2 [635 kB] Fetched 2025 kB in 1min 20s (25.5 kB/s) (Reading database ... 18441 files and directories currently installed.) Preparing to unpack .../readline_8.3_aarch64.deb ... Unpacking readline (8.3) over (8.2.13) ... Setting up readline (8.3) ... (Reading database ... 18446 files and directories currently installed.) Preparing to unpack .../archives/bash_5.3_aarch64.deb ... Unpacking bash (5.3) over (5.2.37-2) ... Setting up bash (5.3) ... Installing new version of config file /data/data/com.termux/files/usr/etc/bash.bashrc ... (Reading database ... 18453 files and directories currently installed.) Preparing to unpack .../termux-keyring_3.13_all.deb ... Unpacking termux-keyring (3.13) over (3.12-1) ... Setting up termux-keyring (3.13) ... (Reading database ... 18456 files and directories currently installed.) Preparing to unpack .../command-not-found_3.1-2_aarch64.deb ... Unpacking command-not-found (3.1-2) over (3.1-1) ... Preparing to unpack .../libsqlite_3.50.2_aarch64.deb ... Unpacking libsqlite (3.50.2) over (3.50.1-1) ... Setting up libsqlite (3.50.2) ... Setting up command-not-found (3.1-2) ... ~ $ pkg update && pkg upgrade -y No mirror or mirror group selected. You might want to select one by running 'termux-change-repo' Checking availability of current mirror: [*] https://mirrors.nguyenhoang.cloud/termux/termux-main: bad Testing the available mirrors: [*] (10) https://packages-cf.termux.dev/apt/termux-main: bad [*] (1) https://mirror.meowsmp.net/termux/termux-main: bad [*] (1) https://mirror.nevacloud.com/applications/termux/termux-main: bad [*] (1) https://mirrors.saswata.cc/termux/termux-main: bad [*] (1) https://tmx.xvx.my.id/apt/termux-main: bad [*] (1) https://mirrors.krnk.org/apt/termux/termux-main: bad [*] (1) https://termux.niranjan.co/termux-main: bad [*] (1) https://mirror.textcord.xyz/termux/termux-main: bad [*] (1) https://mirror.bardia.tech/termux/termux-main: bad [*] (1) https://mirror.twds.com.tw/termux/termux-main: bad [*] (1) https://mirror.albony.in/termux/termux-main: ok [*] (1) https://mirrors.cbrx.io/apt/termux/termux-main: ok [*] (1) https://mirror.jeonnam.school/termux/termux-main: ok [*] (1) https://mirror.rinarin.dev/termux/termux-main: ok [*] (1) https://mirror.freedif.org/termux/termux-main: ok [*] (1) https://linux.domainesia.com/applications/termux/termux-main: ok [*] (1) https://mirrors.ravidwivedi.in/termux/termux-main: ok [*] (1) https://mirrors.nguyenhoang.cloud/termux/termux-main: ok [*] (1) https://mirrors.in.sahilister.net/termux/termux-main/: ok [*] (1) https://mirrors.sdu.edu.cn/termux/termux-main: ok [*] (1) https://mirrors.hust.edu.cn/termux/apt/termux-main: ok [*] (1) https://mirrors.nju.edu.cn/termux/apt/termux-main: ok [*] (1) https://mirrors.cernet.edu.cn/termux/apt/termux-main: ok [*] (1) https://mirror.nyist.edu.cn/termux/apt/termux-main: ok [*] (1) https://mirrors.cqupt.edu.cn/termux/termux-main: ok [*] (1) https://mirror.iscas.ac.cn/termux/apt/termux-main: ok [*] (1) https://mirrors.sau.edu.cn/termux/apt/termux-main: ok [*] (1) https://mirrors.pku.edu.cn/termux/termux-main/: ok [*] (1) https://mirrors.tuna.tsinghua.edu.cn/termux/apt/termux-main: ok [*] (1) https://mirrors.bfsu.edu.cn/termux/apt/termux-main: ok [*] (1) https://mirrors.zju.edu.cn/termux/apt/termux-main: ok [*] (1) https://mirrors.sustech.edu.cn/termux/apt/termux-main: bad [*] (1) https://mirror.sjtu.edu.cn/termux/termux-main/: bad [*] (1) https://mirrors.aliyun.com/termux/termux-main: ok [*] (1) https://mirrors.ustc.edu.cn/termux/termux-main: ok [*] (1) https://packages.termux.dev/apt/termux-main: ok [*] (1) https://ro.mirror.flokinet.net/termux/termux-main: ok [*] (1) https://termux.cdn.lumito.net/termux-main: ok [*] (1) https://nl.mirror.flokinet.net/termux/termux-main: ok [*] (1) https://mirror.sunred.org/termux/termux-main: ok [*] (1) https://mirror.mwt.me/termux/main: ok [*] (1) https://ftp.fau.de/termux/termux-main: ok [*] (1) https://ftp.agdsn.de/termux/termux-main: ok [*] (1) https://mirrors.de.sahilister.net/termux/termux-main: ok [*] (4) https://grimler.se/termux/termux-main: ok [*] (1) https://mirror.polido.pt/termux/termux-main: bad [*] (1) https://termux.3san.dev/termux/termux-main: ok [*] (1) https://mirrors.medzik.dev/termux/termux-main: ok [*] (1) https://termux.mentality.rip/termux-main: ok [*] (1) https://mirror.leitecastro.com/termux/termux-main: ok [*] (1) https://termux.librehat.com/apt/termux-main: ok [*] (1) https://md.mirrors.hacktegic.com/termux/termux-main: ok [*] (1) https://mirrors.cfe.re/termux/termux-main: bad [*] (1) https://mirror.accum.se/mirror/termux.dev/termux-main: ok [*] (1) https://mirror.autkin.net/termux/termux-main: ok [*] (1) https://mirror.bouwhuis.network/termux/termux-main: ok [*] (1) https://is.mirror.flokinet.net/termux/termux-main: ok [*] (1) https://mirror.termux.dev/termux-main: bad [*] (1) https://plug-mirror.rcac.purdue.edu/termux/termux-main: bad [*] (1) https://mirrors.utermux.dev/termux/termux-main: ok [*] (1) https://dl.kcubeterm.com/termux-main: bad [*] (1) https://termux.danyael.xyz/termux/termux-main: ok [*] (1) https://gnlug.org/pub/termux/termux-main: ok [*] (1) https://mirror.vern.cc/termux/termux-main: bad [*] (1) https://mirror.csclub.uwaterloo.ca/termux/termux-main: ok [*] (1) https://mirror.mwt.me/termux/main: ok [*] (1) https://mirror.quantum5.ca/termux/termux-main: ok [*] (1) https://mirror.fcix.net/termux/termux-main: ok [*] (1) https://mirrors.middlendian.com/termux/termux-main: ok [*] (1) http://mirror.mephi.ru/termux/termux-main: ok [*] (1) https://repository.su/termux/termux-main/: ok Picking mirror: (40) /data/data/com.termux/files/usr/etc/termux/mirrors/europe/termux.librehat.com Get:2 https://termux.librehat.com/apt/termux-main stable InRelease [14.0 kB] Get:3 https://termux.librehat.com/apt/termux-main stable/main aarch64 Packages [527 kB] Get:1 https://turdl.kcubeterm.com tur-packages InRelease [18.4 kB] Ign:1 https://turdl.kcubeterm.com tur-packages InRelease Ign:1 https://turdl.kcubeterm.com tur-packages InRelease Get:1 https://turdl.kcubeterm.com tur-packages InRelease [18.4 kB] Get:4 https://turdl.kcubeterm.com tur-packages/tur aarch64 Packages [72.4 kB] Ign:4 https://turdl.kcubeterm.com tur-packages/tur aarch64 Packages Ign:4 https://turdl.kcubeterm.com tur-packages/tur aarch64 Packages Get:4 https://turdl.kcubeterm.com tur-packages/tur aarch64 Packages [72.4 kB] Fetched 582 kB in 4min 16s (2276 B/s) Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date. No mirror or mirror group selected. You might want to select one by running 'termux-change-repo' Checking availability of current mirror: [*] https://termux.librehat.com/apt/termux-main: ok Hit:1 https://termux.librehat.com/apt/termux-main stable InRelease Hit:2 https://turdl.kcubeterm.com tur-packages InRelease Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date. Reading package lists... Done Building dependency tree... Done Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. ~ $
07-10
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值