我最近安装的Ubuntu系统当前存在命令找不到钩子的问题:
josh@sirius:~$ invalid-command
Unable to open binary database /usr/share/command-not-found/programs.d/i386-main.db: File read error
Unable to open binary database /usr/share/command-not-found/programs.d/i386-multiverse.db: File read error
Unable to open binary database /usr/share/command-not-found/programs.d/i386-restricted.db: File read error
Unable to open binary database /usr/share/command-not-found/programs.d/i386-universe.db: File read error
invalid-command: command not found我尝试过重新安装和dpkg-reconfigure这两个command-not-found{,-data},但这些似乎没有修复它。删除这些文件安全吗?还是我必须运行一些程序来重新创建它们?我应该补充一点,这最初是一个32位的安装,我用64位重新安装,而没有格式化磁盘。
发布于 2013-07-24 09:20:46
64位版本的数据库文件名为amd64-*.db,32位版本的数据库文件名为i386-*.db。因此,很明显,您已经安装了32位包,而您应该已经安装了64位包。
这个输出是什么?
apt-cache policy command-not-found{,-data}https://askubuntu.com/questions/323765
复制相似问题