Although you can specify any available version of MongoDB, apt-get will upgrade the packages when a newer version becomes available. To prevent unintended upgrades, pin the package. To pin the version of MongoDB at the currently installed version, issue the following command sequence:
另外问下如何降级软件包啊,比如最新版的glib(2.40以上)似乎有毛病,在我的elementary os上造成深度音乐无法启动,更新后无法降级了啊,能上不能下,卸载会造成很多依赖被卸载。在dpkg包管理上不懂,不过感觉opensuse的zypper用着挺爽(用opensuse很短,同样不了解,有时感觉zypper又太难用),更换组件时会解决依赖问题,视乎还能降级软件包吧!可恶的依赖,让人痛苦不堪!!