debian 7 下的一些错误提示解决办法

1、修改系统时间
cp /usr/share/zoneinfo/Asia/ShangHai /etc/localtime #时区为亚洲/上海
date 命令查看

2、用惯了vim,在debian下你会发现vi中无法使用delete和backspace键。
原来Debian中自带的vi是vim-tiny,程序本身就不支持Backspace删除功能。

解决办法:重新安装其他版本的vi
apt-get update
apt-get install -y vim vim-runtime
 

3、提示-bash: killall: command not found
debian下
apt-cache search killall
apt-get install psmisc

centos下
yum search killall
yum install -y psmisc

4、安装libc6
在debian 7 x86_64下安装软件时提示错误:
Depends: libc6 (>= 2.14) but 2.13-38+deb7u8 is to be installed
E: Unable to correct problems, you have held broken packages.

添加Jessie的源更新就好了
echo "deb ftp://ftp.debian.org/debian/ jessie main 
deb-src ftp://ftp.debian.org/debian/ jessie main" >> /etc/apt/sources.list
apt-get update
apt-get upgrade

5、debian 系统,发现没有libpcap-dev 。解决方法:更新源

#vi /etc/apt/sources.list 添加下列源
deb http://ftp.debian.org/debian lenny main contrib non-free
deb-src http://ftp.debian.org/debian lenny main contrib non-free
deb http://mirrors.163.com/debian lenny main contrib non-free
deb-src http://mirrors.163.com/debian lenny main contrib non-free
然后# apt-get update
    # apt-get upgrade

6、出现错误提示:
"libcurl.so.4: cannot open shared object file: No such file or directory"

解决办法
apt-get update
apt-get install -y curl
 

7、获得中国的所有ip
wget http://www.ipdeny.com/ipblocks/data/countries/cn.zone

$IPTABLES -A INPUT -s $ip -j DROP
需要注意的是Debian上iptables是不会保存规则的

转载于:https://my.oschina.net/u/2404183/blog/533164

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值