当我运行时sudo
,终端卡住了几秒钟,然后输出错误消息。我的终端看起来像这样:
ubuntu@(none):~$ sudo true
sudo: unable to resolve host (none)
Run Code Online (Sandbox Code Playgroud)
我能做些什么来解决它?
我经常发现自己想要安装一些东西,但我不确定它在哪个包中。这对我来说很常见:
$ make html
sphinx-build -b djangohtml -d _build/doctrees . _build/html
make: sphinx-build: Command not found
make: *** [html] Error 127
$ sudo apt-get install sphinx
E: Unable to locate package sphinx
$ sudo apt-get install sphinx-build
E: Unable to locate package sphinx-build
Run Code Online (Sandbox Code Playgroud)
谷歌
$ sudo apt-get install python-sphinx
Run Code Online (Sandbox Code Playgroud)
有没有更好的办法?
有没有办法从终端本身内设置 gnome-terminal 标题,而无需右键单击选项卡。就像是:
active-terminal --title "Foo"
Run Code Online (Sandbox Code Playgroud)
之前有一个相关的问题,其答案几乎可以让您这样做:如何更改 Gnome-Terminal 标题?但这并没有仅将 gnome-terminal 选项卡标题设置为窗口标题。
我今天在尝试登录我的服务器时收到此消息。我该怎么办?这是怎么回事?
$ ssh 10.10.10.69
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
3d:1b:02:9e:b2:b8:f0:f7:c6:4f:94:96:f6:e3:c0:d1.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending key in /root/.ssh/known_hosts:8 …
Run Code Online (Sandbox Code Playgroud) 在我的服务器上,当我运行它时,rm 总是要求我获得许可(即使我是 root),但在我的桌面上却没有。像这样:
$ rm mod_wsgi-3.3.tar.gz
rm: remove regular file `mod_wsgi-3.3.tar.gz'?
Run Code Online (Sandbox Code Playgroud)
如何让它停止提示我?
作为在 Ubuntu VM 上安装某些软件的一部分,我想创建一个 samba 共享。我将如何从命令行执行此操作?
每次我开始产生同理心(或我的互联网上网)时,我可能会从 Yahoo IM 收到 20 个好友请求。有没有什么方法可以处理垃圾邮件,而不需要我单独点击所有联系请求并一一驳回?
在我的桌面上打字python-
和按下Tab提供了可安装包的建议,这些包以python
. 我的服务器没有这个能力,我该如何解决?
是否有可能让 Ubuntu 不断调整窗口及其内容的大小?展望中CompizConfig Settings Manager
下重新大小的窗口有以下选项:普通,外形,矩形,拉伸均未做到这一点。
Nginx 指定https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cache_path:/data/nginx/cache
但这看起来不像是在 ubuntu 上存储任何东西的正常位置。另一个地方建议/tmp/nginx
。
什么是适合我的缓存的 ubuntu 约定?
直到大约一周前,我还可以连接到我的无线网络,但现在我突然不能了。该区域内的所有其他无线网络都显示在网络管理器中。我的 Kindle 可以连接到它,我的朋友可以连接到它(在 Windows 中),而之前没有连接到它。我的另一台上网本(三星 NC10)可以连接到它,但我的另一台三星 N150 现在甚至看不到它。
我不知所措,我将如何调试和卸载我的计算机?
我从以下(截断的)输出 --status-all
$ service --status-all
[..]
[ - ] ossec
[ - ] ossec-hids-authd
[..]
Run Code Online (Sandbox Code Playgroud)
但我无法通过service
以下方式访问它:
$ service status ossec-hids-authd
status: unrecognized service
Run Code Online (Sandbox Code Playgroud)
我的 init.d 脚本如下所示:
#!/bin/sh -e
#### BEGIN INIT INFO
# Provides: ossec-authd
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Authentication Daemon for OSSEC-HIDS.
# Description: Provides key signing for OSSEC Clients
### END INIT INFO
NAME=ossec-authd
DAEMON=/var/ossec/bin/ossec-authd
DAEMON_ARGS="-p 1515 …
Run Code Online (Sandbox Code Playgroud) 可能重复:
cron / crontab 日志在哪里?
在尝试谷歌时,很多消息来源声称有一个 cron 登录,/var/log
但我没有。我相当确信 cron 已经运行并且我知道它正在运行是因为:
service cron status
cron start/running, process 19574
Run Code Online (Sandbox Code Playgroud)
我需要设置一些设置吗?