安装grubby
debian系统没有grubby安装包,
所以使用源码编译, 源码地址:https://github.com/lemenkov/grubby.git
make
make install
dpkg -s grubby 会报错
伪造dpkg安装状态
vim /var/lib/dpkg/status
随便复制一个已经安装好的包,如下
Package: grubby
Status: install ok installed
Priority: required
Section: libs
Installed-Size: 67
Maintainer: Debian Deepin Packaging Team <pkg-deepin-devel@lists.alioth.debian.org>
Architecture: mips64el
Version: 1.5c.debian.1-7
Depends: lrzsz, openssh-client | telnet | telnet-ssl, libc6 (>= 2.27), libreadline7 (>= 6.0)
Description: interactive file transfers over ssh
zssh (Zmodem SSH) is a program for interactively transferring files to a
remote machine while using the secure shell (ssh). It is intended to
be a convenient alternative to scp, allowing to transfer files without
having to open another session and re-authenticate oneself.
.
Files are transferred through the zmodem protocol, using the rz and sz
commands.
Homepage: http://zssh.sourceforge.net/
成功
再次执行 dpkg -s grubby, 此时能查询到安装状态。