leitbogioro / Tools

Something about tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

通过脚本DD后的Debian9系统再次使用脚本DD为Alpine报错

KorenKrita opened this issue · comments

root@debian:~# wget --no-check-certificate -qO InstallNET.sh 'https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/InstallNET.sh' && chmod a+x InstallNET.sh && bash InstallNET.sh -alpine --bbr -hostname "krita" --cloudkernel --fail2ban
Setting up swapspace version 1, size = 512 MiB (536866816 bytes)
no label, UUID=c30c5350-2850-4d35-849e-fe84d8646bfa
swapon: /swapspace: swapon failed: Invalid argument
Ign:1 http://archive.debian.org/debian stretch InRelease
Hit:2 http://archive.debian.org/debian stretch Release
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
lsb-release is already the newest version (9.20161125).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
grep: /etc/yum.repos.d/: No such file or directory
InstallNET.sh: line 1378: yum: command not found
cat: /etc/redhat-release: No such file or directory
cat: /etc/system-release: No such file or directory
InstallNET.sh: line 1395: apk: command not found
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'inetutils-ping' is not installed, so not removed
Package 'kexec-tools' is not installed, so not removed
Package 'kdump-tools' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package fdisk
E: Unable to locate package tuned
InstallNET.sh: line 1457: yum: command not found
connect: Network is unreachable
connect: Network is unreachable
connect: Network is unreachable
connect: Network is unreachable
connect: Network is unreachable
connect: Network is unreachable
connect: Network is unreachable
connect: Network is unreachable
InstallNET.sh: line 1061: efibootmgr: command not found
ls: cannot access '/sys/firmware/efi/efivars/': No such file or directory
ls: cannot access '/sys/firmware/efi/vars/': No such file or directory
ls: cannot access '/sys/firmware/efi/runtime-map/': No such file or directory
ls: cannot access '/sys/firmware/efi/mok-variables/': No such file or directory
InstallNET.sh: line 1304: virt-what: command not found
InstallNET.sh: line 1597: [[: --: syntax error: operand expected (error token is "-")
InstallNET.sh: line 1597: [[: --: syntax error: operand expected (error token is "-")
find: ‘/boot/efi/EFI/’: No such file or directory
find: ‘/boot/efi/EFI/’: No such file or directory
InstallNET.sh: line 1114: type: grub2-mkconfig: not found
InstallNET.sh: line 1597: [[: --: syntax error: operand expected (error token is "-")
InstallNET.sh: line 1597: [[: --: syntax error: operand expected (error token is "-")

# System Memory

255 MB

# Virtualization and Manufacturer

kvm qemu

[Error] Invaild mirror! 
Please check mirror lists: https://mirrors.alpinelinux.org/

看起来是被识别成centos系了?

已确认是bbr导致 需要更高版本系统