报错There is no public key available for the following key IDs,解决办法如下:
执行指令
sudo apt-get install debian-keyring debian-archive-keyring -[......]
报错There is no public key available for the following key IDs,解决办法如下:
执行指令
sudo apt-get install debian-keyring debian-archive-keyring -[......]
买了个三欧元半年的VPS,上去想装东西发现报错:Media change: please insert the disc labeled。查了下,找到解决办法:
vi /etc/apt/sources.list
注释掉里面的cdrom那行后即可正常执行指令。
解决办[……]
编写Shell的时候发现读取win下的文件会出现文本结尾有^M,经过查找,在stackoverflow找到了答案。示例代码如下:
cat keywords.txt |while read line
do
line=${line//[$'trn']}c[......]
rsync –exclude files and folders
Note: the directory path is relative to the folder you are backing up.注意:这个路径必须是一个相对路径,不能是绝对路径[……]
重启,按ESC,进入grub,在 ubuntu boot menu 里选 ( recovery mode )后回车
稍后出现的recovery menu 里选 Drop to root Shell prompt
然后在下面 terminal 里打
mount -o r[......]
sudo apt-get install sysv-rc-conf
安装后,chkconfig怎么使用,他就怎么使用,示例:
sysv-rc-conf Apache2 on
sysv-rc-conf --list apach[......]
Ubuntu搭建FTP服务器,配置Vsftpd,发现点小问题,默认用户可以访问所有目录,配置文件检查后,发现只需要设置
/etc/vsftpd.conf
的chroot_local_user=YES就行了。
或者
chroot_list_enable=YES
chro[……]
有些服务是针对某个用户的,如果想随机启动,不指定用户,是无法利用rc.local正常启动的,所以找了下如何指定对应用户,否则默认用root用户还真就启动不起来。
示例代码如下:
sudo vim /etc/init.d/rc.local
su testuser -c &[......]
sudo vim /etc/apt/apt.conf
对该文件进行编辑,添加如下代码后保存退出。
Acquire::https::Proxy "https://proxyaddress:port";
如此,就实现了apt-get命令使用HTTP代理了[……]