ubuntu 常用问题解决方法

 1、ubuntu adsl

sudo vim /etc/NetworkManager/NetworkManager.conf

managed=false

sudo pppoeconf

057102290037/

10.16.40.51




2、Ubuntu解决Wired Unmanaged

由于之前在家里手动修改过有线的配置文件。导致系统无法托管网络连接
解决方法:
sudo vim /etc/NetworkManager/NetworkManager.conf

managed=false
改成
managed=truet
然后重启network-manager
sudo service network-manager restart
sudo NetworkManager 或者kill掉再启用


3、如果network manager坏了,可以下掉
sudo apt-get remove network-manager
sudo vi /etc/network/interfaces  把手工改成dhcp连接上网
auto eth0
iface eth0 inet dhcp
/etc/init.d/networking restart 重启网络即可

sudo apt-get install network-managert

4、Booting system without full network configuration
一般是由于adsl配置引起的,当配置用adsl上网时
/etc/network/interfaces会加上配置
auto dsl-provider
iface dsl-provider inet ppp
pre-up /sbin/ifconfig stop up # line maintained by pppoeconf
provider dsl-provider
当用有线普通连接时启动系统过程中写interfaces会出问题,会出现Booting system without full network configuration。
解决方法:
把这几行注释掉,sudo reboot

5、ubuntu系统日志
/var/log/syslog


6、unbuntu12.10 virtualbox 摄相头
sudo apt-get install gnome-system-tools
然后进入usrs and group把用户加进来,virtualbox启动usb




12.10 virbox
Make sure there are no traces of dkms, (virtualbox/ virtualbox-4.2), linux generic headers (..17):

***Replace virtualboxsudo dpkg-reconfigure resolvconf-4.2/virtualbox with the version you have already installed. If you haven't installed it yet then proceed to step 2.

sudo apt-get purge virtualbox-4.2 dkms linux-headers-$(uname -r)
sudo apt-get install linux-headers-$(uname -r)
sudo apt-get install virtualbox-4.2
You MUST install the linux headers BEFORE virtualbox otherwise the VBox installation will error when trying to set up the vboxdrv section because the linux headers aren't installed.sudo vi /etc/h


7、resolv.conf isn't a symlink
配置interfaces文件后用/etc/init.d/networking restart命令重启网络配置出现以下错误
* Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces
* Reconfiguring network interfaces...
resolvconf: Error: /etc/resolv.conf isn't a symlink, not doing anything.
RTNETLINK answers: File exists
Failed to bring up eth0.
resolvconf: Error: /etc/resolv.conf isn't a symlink, not doing anything.
* Setting up iSCSI targets
   ...done.
ssh stop/waiting
ssh start/running, process 15220
   ...done.

解决:http://askubuntu.com/questions/137037/networkmanager-not-populating-resolv-conf   sudo dpkg-reconfigure resolvconf

8\yaowj2@yaowj2-ThinkPad-T430s:~$ sudo apt-get remove network-manager
Reading package lists... Error!
E: Encountered a section with no Package: header

sudo rm /var/lib/apt/lists/* -vf
sudo apt-get update

9\有IP上不了网

sudo vi /etc/resolv.conf
设置dns nameserver 106.186.114.78

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值