那么首先恭喜你,避免了最糟的情况。 能对比一下你正常机器和异常机器的差异么?两者分别是什么发行,gpg的版本号各是多少?
On Fri, Dec 28, 2018 at 1:40 PM chenlhlinux <chenlhli...@qq.com> wrote: > 私钥在其他的机器上导入是正常的,私钥应该没有问题。 > ---Original--- > *From:* "Shell Xu"<shell909...@gmail.com> > *Date:* Fri, Dec 28, 2018 09:59 AM > *To:* "chenlhlinux"<chenlhli...@qq.com>; > *Cc:* "debian-chinese-gb@lists debian. org"< > debian-chinese-gb@lists.debian.org>; > *Subject:* Re: gnupg导入私钥的问题 > > 我问个题外话。备份出来的时候有试过测试恢复/导入么?理论上私钥都是要测试恢复的,否则等发生问题发现备份出了错就有意思了。 > 简单测试方法是设定GNUPGHOME环境变量,这样会产生一个和当前隔离的环境。如果这个环境下可以正常导入,那说明基本无大问题了。 > 我一般还会把~/.gnupg连根拷贝一份,以防万一。 > > 如果备份的时候已经经过了测试恢复,那么你可以试试找第二台机器去导入,确定是机器问题还是文件问题。 > > On Fri, Dec 28, 2018 at 12:20 AM chenlhlinux <chenlhli...@qq.com> wrote: > >> 大家好: >> 刚刚我想在gpg中导入我的私钥,命令是:gpg --import 私钥文件名 >> 报错信息为: >> gpg: key 171F1787E07E87D2: "chenlhlinux (clh) <chenlhli...@qq.com>" not >> changed >> gpg: error getting the KEK: End of file >> gpg: Total number processed: 1 >> gpg: unchanged: 1 >> gpg: secret keys read: 1 >> 经确认,私钥文件没有问题,且公钥可以正常导入。 >> 请问这是什么原因,如何解决? >> >> >> 感谢! >> > > > -- > 彼節者有間,而刀刃者無厚;以無厚入有間,恢恢乎其於游刃必有餘地矣。 > blog: http://shell909090.org/ > twitter: @shell909090 <https://twitter.com/shell909090> > about.me: http://about.me/shell909090 > -- 彼節者有間,而刀刃者無厚;以無厚入有間,恢恢乎其於游刃必有餘地矣。 blog: http://shell909090.org/ twitter: @shell909090 <https://twitter.com/shell909090> about.me: http://about.me/shell909090