当我尝试使用https://docs.mongodb.com/getting-started/shell/tutorial/install-mongodb-on-ubuntu/16.04上的说明安装 mongodb 时,我在安装步骤中得到以下结果:
jonathan@poseidon:~$ sudo apt-get install mongodb-org
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package mongodb-org is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'mongodb-org' has no installation candidate
Run Code Online (Sandbox Code Playgroud)
我使用 Wireshark 检查了 HTTP 流量,发现唯一的流量是列表的 HTTP GET 和 HTTP 304 响应,这表明问题出在我的本地配置文件中。我的 sources.list.d 文件包含以下条目:
mongodb-org-3.4.list
Run Code Online (Sandbox Code Playgroud)
我需要做什么才能继续解决此问题?
编辑:我尝试在 VirtualBox 下的 16.04 新安装上再次执行此操作。我检索了密钥,创建了列表文件,并sudo apt …
我正在尝试在已经安装了 apache2、php 和 mariadb 的 Ubuntu 18.04 服务器上安装 php-mbstring。我已尝试使用以下命令序列:
jonathan@samuel:~$ sudo apt update
[sudo] password for jonathan:
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://downloads.mariadb.com/MariaDB/mariadb-10.3/repo/ubuntu bionic InRelease
Get:3 http://archive.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Ign:4 http://downloads.mariadb.com/MaxScale/2.2/ubuntu bionic InRelease
Hit:5 http://downloads.mariadb.com/Tools/ubuntu bionic InRelease
Get:6 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Hit:7 http://downloads.mariadb.com/MaxScale/2.2/ubuntu bionic Release
Fetched 172 kB in 2s (91.6 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
jonathan@samuel:~$ sudo apt install php-mbstring
Reading package …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用以下命令安装 git-all:
sudo apt update
sudo apt install git-all
Run Code Online (Sandbox Code Playgroud)
我得到以下结果:
jonathan@Aristotle:~$ sudo apt install git-all
Reading package lists... Done
Building dependency tree
Reading state information... Done
git-all is already the newest version (1:2.7.4-0ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up runit (2.1.2-3ubuntu1) ...
start: Unable to connect to …Run Code Online (Sandbox Code Playgroud) 当我使用 apt 存储库中的 Git 2.7.4 在 16.04 上发出以下命令时
git commit -sS --status
Run Code Online (Sandbox Code Playgroud)
我得到以下结果:
Aborting commit due to empty commit message.
Run Code Online (Sandbox Code Playgroud)
我已经配置了 Git 全局配置如下:
jonathan@Aristotle:~/EclipseWorkspaces/AGI$ git config --global -l
user.name=Jonathan Gossage
user.email=jgossage@gmail.com
core.editor=gedit
Run Code Online (Sandbox Code Playgroud)
鉴于此配置,我希望 Git 启动 gedit 编辑器以允许我输入提交消息。这是对空存储库的第一次提交。git status 作为附件包含在内。