我正在尝试安装运行实时 Ubuntu 18.04.1 LTS 的 sfdisk 3.0。我已经运行了以下所有内容:
sudo add-apt-repository universe
sudo add-apt-repository restricted
sudo add-apt-repository multiverse
sudo add-apt-repository main
sudo apt-get update
sudo apt-get install util-linux
sudo apt-cache show util-linux
sudo apt-get update
sudo apt-get install libfdisk-dev
sudo apt-get install sfdisk
然后我得到
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package sfdisk is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'sfdisk' has no installation candidate
我错过了什么?
答案1
在 18.04 LTS 上你应该安装fdisk
包来获取/sbin/sfdisk
(见参考 packages.ubuntu.com):
sudo apt install fdisk