qubic-li/hiveos

Potential problem with additional apt sources to brick HiveOS

Closed this issue · 4 comments

Please modify the following command used for installation of glibc to remove the added source after installation has finished. If we leave this source in the apt sources and user in the future does an 'apt upgrade', it has big potential to brick HiveOS installation.

Current command:

apt update && apt upgrade -y && echo "deb http://archive.ubuntu.com/ubuntu jammy main" >> /etc/apt/sources.list && apt update && apt install tmux -y && apt install libc6 -y

Modified command:

apt update && apt upgrade -y && echo "deb http://archive.ubuntu.com/ubuntu jammy main" >> /etc/apt/sources.list && apt update && apt install tmux -y && apt install libc6 -y && sed -i '/deb http:\/\/archive.ubuntu.com\/ubuntu jammy main/d' /etc/apt/sources.list && apt update

Worm commented

Thx. Solved

Just noticed that this Github remove backward slashes from the sed command. Please use this instead

apt update && apt upgrade -y && echo "deb http://archive.ubuntu.com/ubuntu jammy main" >> /etc/apt/sources.list && apt update && apt install tmux -y && apt install libc6 -y && sed -i '/deb http:\/\/archive.ubuntu.com\/ubuntu jammy main/d' /etc/apt/sources.list && apt update

in what version it is solved?

in what version it is solved?

5 hours ago they have updated miner accordingly so latest version available.

image