Tag: apt

我怎么能确定我使用的是NTP版本4.2.8p1或同等版本?

我最近读到了ntp中的漏洞, 这里可以通过安装ntp版本4.2.8p1来关闭。 但是,我使用apt-get在Ubuntu 14.04.2服务器上安装最新版本的ntp,但这只是版本4.2.6p5。 我无法通过浏览存储库找到更新的版本,虽然我很擅长这样做,所以可能错过了它。 甚至Vivid Vervet也显示4.2.6p5。 我假设有一个版本更改的审核流程仍在审核中。

如何在Ubuntu上安装MongoDb 3+?

我从官方网站上阅读了本手册,并完成了所有步骤。 sudo apt-key adv –keyserver hkp://keyserver.ubuntu.com:80 –recv 7F0CEB10 echo “deb http://repo.mongodb.org/apt/ubuntu “$(lsb_release -sc)”/mongodb-org/3.0 multiverse” | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list sudo apt-get update 但是,当我执行apt-get -s install -y mongodb-org时,它会显示它将安装Inst mongodb-org-server (2.6.9 mongodb:dist/mongodb [i386]) ,这是2.6.9而不是3. + 。 我也尝试过apt-get -s install -y mongodb-org=3.0.2但它显示E: Version ‘3.0.2’ for ‘mongodb-org’ was not found 。 我的Ubuntu版本: Ubuntu 14.04.2 LTS

由于“未满足的依赖性”,不能再使用“apt-get install”了

我不记得最近在我的电脑上做过任何想象,但我不能再运行apt-get install了 $ sudo apt-get install phantomjs Reading package lists… Done Building dependency tree Reading state information… Done You might want to run ‘apt-get -f install’ to correct these: The following packages have unmet dependencies: libnspr4 : Breaks: libnspr4:i386 (!= 4.10.7-0ubuntu0.12.04.1) but 4.10.10-0ubuntu0.12.04.1 is to be installed libnspr4:i386 : Breaks: libnspr4 (!= 4.10.10-0ubuntu0.12.04.1) but 4.10.7-0ubuntu0.12.04.1 […]

如何克服因删除/ usr / share / doc-base中的文件而导致的dpkg错误?

每当我在命令行通过APT运行时,我都会收到以下错误消息: Setting up doc-base (0.10.6) … Processing 2 added doc-base files… Cannot open file `/usr/share/doc-base/python-openbabel-pybel’ for reading: No such file or directory. dpkg: error processing package doc-base (–configure): subprocess installed post-installation script returned error exit status 3 Setting up ballview (1.4.2+20140406-1) … Errors were encountered while processing: doc-base E: Sub-process /usr/bin/dpkg returned an error code […]

无法在Ubuntu 18.04中安装postgreSQL 9.6

我正在尝试通过Ubuntu软件中心在Ubuntu 18.04中安装postgreSQL 9.6并从终端输入 sudo apt-get install postgresql-9.6 根据官方文档https://www.postgresql.org/download/linux/ubuntu/ Create the file /etc/apt/sources.list.d/pgdg.list and add a line for the repository deb http://apt.postgresql.org/pub/repos/apt/ bionic-pgdg main Import the repository signing key, and update the package lists wget –quiet -O – https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add – sudo apt-get update 要安装的版本是10 有帮助吗? 提前致谢。 postgresql: 已安装:(无)候选人:10 + 191.pgdg18.04 + 1版本表:10 […]

如何修复“apt-get upgrade”错误?

当我尝试升级我的Ubuntu系统上安装的软件包时出现这些错误: m@m-desktop ~ $ sudo apt-get upgrade Reading package lists… Done Building dependency tree Reading state information… Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2 not fully installed or removed. After this operation, 0B of additional disk space will be used. Do you want to continue [Y/n]? y Setting […]

如何下载和使用除默认安装的内核之外的任何其他内核

假设我使用的是Ubuntu 12.04(LTS),它使用3.5.0-37内核。 如果我想使用3.9.6内核,我该如何使用它? 我不想升级到13.04 我是否必须手动下载此内核,编译它并创建它的initrd,或者我可以通过启用某些存储库使用apt-get install来获取它吗? 请帮忙。

有人知道如何在ubuntu中修复此安装错误吗?mysql-server-5.6 E:子进程/ usr / bin / dpkg返回错误代码(1)

我正在尝试删除mysql-workbench。 但每次当我尝试删除与mysql相关的东西时,我都会收到此错误。 Reading package lists… Done Building dependency tree Reading state information… Done The following packages will be REMOVED: mysql-server-5.6 0 upgraded, 0 newly installed, 1 to remove and 9 not upgraded. 1 not fully installed or removed. After this operation, 52,5 MB disk space will be freed. Do you want to continue? [Y/n] Y […]

如何使用packages.ubuntu.com像apt-file搜索不同的版本?

我想从命令行使用http://packages.ubuntu.com/的强大function,类似于apt-file search -i工作,以查找提供包含特定模式的文件的包。 我不能使用apt-file因为我不仅需要搜索我正在运行的版本(14.04),还要搜索14.10和15.04。 我如何获得所有提供包含com.canonical.Unity glib-2.0模式的com.canonical.Unity但是如果我从命令行运行14.04则为14.10?

在Ubuntu 16.10中添加存储库时出错(keyserver接收失败)

每当我尝试在我的Ubuntu 16.10中添加一个存储库时,我都会收到keyserver接收失败的错误。 例如,在添加pycharm repo时,我收到此错误: sudo add-apt-repository ppa:mystic-mirage/pycharm The Most Intelligent Python IDE Enjoy productive Python, Django, and Web development with PyCharm, an intelligent Python IDE offering unique coding experience This PPA contains both PyCharm Professional and Community Editions Update 2016-07-22: Unity Menubar Integration enabled. Enjoy! More info: https://launchpad.net/~mystic-mirage/+archive/ubuntu/pycharm Press [ENTER] to continue or ctrl-c to […]