Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以我今天遇到了一个有趣的小问题,使用包管理器更新我的 MongoDB 实例。每次它尝试更新时,都会给我一个错误E: mongodb-10gen: subprocess installed post-installation script returned error exit status 1
E: mongodb-10gen: subprocess installed post-installation script returned error exit status 1
包管理器中的其他所有内容都可以正常升级。
错误是说它无法成功运行安装后脚本;本质上它在升级后无法重新启动数据库。就我而言,那是因为数据库已经在运行。关闭和升级通常可以解决我的问题并允许我的包管理器完全升级。
mongo
use admin
db.runCommand('shutdown')
exit
sudo apt-get update
sudo apt-get upgrade
瞧,现在您的 MongoDB 安装应该已升级并运行。