我使用sudo apt-get
. 现在我需要从我的系统中删除它。
我怎样才能做到这一点?
我几乎在所有任务中都使用终端。假设我输入了一个像这样的巨大命令:
sudo a-huge-command
Run Code Online (Sandbox Code Playgroud)
使用单个快捷方式删除整个命令而不是继续backspace按键的最简单方法是什么?
我是一名 Ubuntu 新手,希望以专业的方式使用 Ubuntu。
我对 Ubuntu 很陌生。我听到人们说“shell 脚本”、“bash 脚本”。
我想知道他们是一样的吗?或者他们不一样?
我mysql
在命令行中尝试过:
我得到:
The program 'mysql' is currently not installed. You can install it by typing:
sudo apt-get install mysql-client-core-5.5
Run Code Online (Sandbox Code Playgroud)
但是当我这样做时:
sudo apt-get install mysql-client-core-5.5
Run Code Online (Sandbox Code Playgroud)
但我得到:
Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-client-core-5.5 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 47 not upgraded.
Run Code Online (Sandbox Code Playgroud)
我应该如何进行?
我对 Ubuntu 很陌生,我想知道: 的确切用途是/etc/hosts
什么?
假设我将其添加到其中:
127.0.x.x mydomain
Run Code Online (Sandbox Code Playgroud)
这意味着什么?
我想知道为什么我的系统日志上会出现此错误:
[7732763.396193] [UFW BLOCK] IN=eth0 OUT= MAC=02:8b:1a:75:d5:7b:02:8b:1a:40:00:03:08:00 SRC=x.x.x.x DST=x.x.x.x LEN=40 TOS=0x00 PREC=0x00 TTL=64 ID=53703 DF PROTO=TCP SPT=35651 DPT=8443 WINDOW=457 RES=0x00 ACK RST URGP=0
Run Code Online (Sandbox Code Playgroud)
我刚刚启用了ufw
. 这个错误意味着出了什么问题?
每当我通过apt-get
以下方式安装任何软件包时都会收到此错误:
hostname: Name or service not known
dpkg: error processing ssmtp (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up libt1-5 (5.1.2-3.4ubuntu1) ...
Setting up php5-gd (5.3.10-1ubuntu3.2) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
ssmtp
E: Sub-process /usr/bin/dpkg returned an error code (1)
Run Code Online (Sandbox Code Playgroud)
为什么会发生这种情况?
我试图更改 Ec2 实例(即 Ubuntu 12.04)中的 tcp 时间戳。我打开了编辑器并将值1
从0
. 当我尝试保存文件时,出现此错误:
/proc/sys/net/ipv4/tcp_timestamps" E667: Fsync failed
Run Code Online (Sandbox Code Playgroud)
我对 Ubuntu 很陌生。任何人都可以帮我解决这个问题吗?
我对 Ubuntu 很陌生。我正在查看/usr/include
包含大量头文件的目录。我知道他们已经指定了在 Ubuntu 中使用的某些常量和其他信息。我对它的使用感到困惑。
里面的目录之一是linux/byteorder
. 其中有两个文件:
big_endian.h little_endian.h
Run Code Online (Sandbox Code Playgroud)
我想知道为什么需要两个文件?我的机器将是大端或小端,对吗?安装时 ubuntu 没有选择我的系统字节顺序吗?不/usr/include
只是为所有的机器一样的吗?它的确切用途是什么?
提前致谢。
我对 Ubuntu 很陌生。我无法通过我的编程语言连接到 mysql。
我知道我的代码中的所有属性文件都是正确的。但是我仍然无法连接到mysql。我想我的防火墙把我挡在了外面。
我有 ufw
安装了防火墙,如何在其中启用 3306 端口?
我试过这些步骤但没有得到解决方案。
提前致谢。