ubuntu server 12.04 lts 安裝

dell r410 1uubuntu

  • ip網絡配置網絡

    修改文件:rest

    /etc/network/interfaces

    配置靜態ip以下:code

    iface eth0 inet static  
     address 61.xxx.xxx.30  
     netmask 255.255.255.224  
     gateway 61.xxx.xxx.1

    重啓網絡:server

    sudo /etc/init.d/networking restart
  • dnsdns

    修改文件:ip

    /etc/resolv.conf
  • 碰到command-not-found has crashed後,執行下面命令:ci

    sudo locale-gen zh_CN.UTF-8
  • 將apt-get改爲163源get

    修改文件:it

    /etc/apt/sources.list

    替換成如下內容:

    deb http://mirrors.163.com/ubuntu/ precise main restricted  
     deb-src http://mirrors.163.com/ubuntu/ precise main restricted  
     deb http://mirrors.163.com/ubuntu/ precise-updates main restricted  
     deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted  
     deb http://mirrors.163.com/ubuntu/ precise universe  
     deb-src http://mirrors.163.com/ubuntu/ precise universe  
     deb http://mirrors.163.com/ubuntu/ precise-updates universe  
     deb-src http://mirrors.163.com/ubuntu/ precise-updates universe  
     deb http://mirrors.163.com/ubuntu/ precise multiverse  
     deb-src http://mirrors.163.com/ubuntu/ precise multiverse  
     deb http://mirrors.163.com/ubuntu/ precise-updates multiverse  
     deb-src http://mirrors.163.com/ubuntu/ precise-updates multiverse  
     deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse  
     deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse  
     deb http://mirrors.163.com/ubuntu/ precise-security main restricted  
     deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted  
     deb http://mirrors.163.com/ubuntu/ precise-security universe  
     deb-src http://mirrors.163.com/ubuntu/ precise-security universe  
     deb http://mirrors.163.com/ubuntu/ precise-security multiverse  
     deb-src http://mirrors.163.com/ubuntu/ precise-security multiverse  
     deb http://extras.ubuntu.com/ubuntu precise main  
     deb-src http://extras.ubuntu.com/ubuntu precise main

    執行命令:

    sudo apt-get update

    若是有key錯誤,執行命令:

    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys < add keys here >

    而後再執行命令:

    sudo apt-get update
相關文章
相關標籤/搜索