2013-05-05 23 views
0

sudo易於得到更新和命令和apt-get安裝不工作我得到以下錯誤,請幫助apt-get的更新或apt-get安裝不工作

sudo apt-get install -f 
Reading package lists... Done 
Building dependency tree  
Reading state information... Done 
Correcting dependencies... Done 
The following extra packages will be installed: 
    cheese cheese-common gnome-video-effects libcheese-gtk21 libcheese3 
    libclutter-1.0-0 libclutter-1.0-common libclutter-gst-1.0-0 
    libclutter-gtk-1.0-0 libclutter-imcontext-0.1-0 libcluttergesture-0.0.2-0 
    libcogl-common libcogl-pango0 libcogl9 libmx-1.0-2 
Suggested packages: 
    gnome-video-effects-frei0r 
The following NEW packages will be installed: 
    cheese-common gnome-video-effects libcheese-gtk21 libcheese3 
    libclutter-1.0-0 libclutter-1.0-common libclutter-gst-1.0-0 
    libclutter-gtk-1.0-0 libclutter-imcontext-0.1-0 libcluttergesture-0.0.2-0 
    libcogl-common libcogl-pango0 libcogl9 libmx-1.0-2 
The following packages will be upgraded: 
    cheese 
1 upgraded, 14 newly installed, 0 to remove and 5 not upgraded. 
3 not fully installed or removed. 
Need to get 4,807 kB of archives. 
After this operation, 11.2 MB of additional disk space will be used. 
Do you want to continue [Y/n]? Y 
WARNING: The following packages cannot be authenticated! 
    libcogl9 libcogl-pango0 libclutter-1.0-0 libclutter-gst-1.0-0 cheese 
    cheese-common libcheese3 libclutter-gtk-1.0-0 libclutter-imcontext-0.1-0 
    libcluttergesture-0.0.2-0 libmx-1.0-2 libcheese-gtk21 gnome-video-effects 
    libclutter-1.0-common libcogl-common 
Install these packages without verification [y/N]? y 
Err http://in.archive.ubuntu.com/ubuntu/ precise/main libcogl9 i386 1.10.0-0ubuntu2 
    Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname) 
Err http://in.archive.ubuntu.com/ubuntu/ precise/main libcogl-pango0 i386 1.10.0-0ubuntu2 
    Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname) 
Err http://in.archive.ubuntu.com/ubuntu/ precise-updates/main libclutter-1.0-0 i386 1.10.6-1~precise1 
    Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname) 
Err http://in.archive.ubuntu.com/ubuntu/ precise/main libclutter-gst-1.0-0 i386 1.5.4-0ubuntu2 
    Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname) 
Err http://in.archive.ubuntu.com/ubuntu/ precise-updates/universe cheese i386 3.4.1-0ubuntu2.1 
    Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname) 
Err http://in.archive.ubuntu.com/ubuntu/ precise-updates/universe cheese-common all 3.4.1-0ubuntu2.1 
    Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname) 
Err http://in.archive.ubuntu.com/ubuntu/ precise-updates/universe libcheese3 i386 3.4.1-0ubuntu2.1 
    Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname) 
Err http://in.archive.ubuntu.com/ubuntu/ precise/main libclutter-gtk-1.0-0 i386 1.2.0-0ubuntu1 
    Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname) 
Err http://in.archive.ubuntu.com/ubuntu/ precise/universe libclutter-imcontext-0.1-0 i386 0.1.4-2build1 
    Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname) 
Err http://in.archive.ubuntu.com/ubuntu/ precise/universe libcluttergesture-0.0.2-0 i386 0.0.2.1-2ubuntu3 
    Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname) 
Err http://in.archive.ubuntu.com/ubuntu/ precise/universe libmx-1.0-2 i386 1.4.3-0ubuntu1 
    Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname) 
Err http://in.archive.ubuntu.com/ubuntu/ precise-updates/universe libcheese-gtk21 i386 3.4.1-0ubuntu2.1 
    Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname) 
Err http://in.archive.ubuntu.com/ubuntu/ precise/universe gnome-video-effects all 0.4.0-1 
    Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname) 
Err http://in.archive.ubuntu.com/ubuntu/ precise-updates/main libclutter-1.0-common all 1.10.6-1~precise1 
    Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname) 
Err http://in.archive.ubuntu.com/ubuntu/ precise/main libcogl-common all 1.10.0-0ubuntu2 
    Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname) 
Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/c/cogl/libcogl9_1.10.0-0ubuntu2_i386.deb Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname) 
Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/c/cogl/libcogl-pango0_1.10.0-0ubuntu2_i386.deb Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname) 
Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/c/clutter-1.0/libclutter-1.0-0_1.10.6-1~precise1_i386.deb Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname) 
Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/c/clutter-gst/libclutter-gst-1.0-0_1.5.4-0ubuntu2_i386.deb Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname) 
Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/universe/c/cheese/cheese_3.4.1-0ubuntu2.1_i386.deb Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname) 
Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/universe/c/cheese/cheese-common_3.4.1-0ubuntu2.1_all.deb Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname) 
Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/universe/c/cheese/libcheese3_3.4.1-0ubuntu2.1_i386.deb Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname) 
Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/c/clutter-gtk/libclutter-gtk-1.0-0_1.2.0-0ubuntu1_i386.deb Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname) 
Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/universe/c/clutter-imcontext/libclutter-imcontext-0.1-0_0.1.4-2build1_i386.deb Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname) 
Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/universe/c/clutter-gesture/libcluttergesture-0.0.2-0_0.0.2.1-2ubuntu3_i386.deb Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname) 
Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/universe/m/mx/libmx-1.0-2_1.4.3-0ubuntu1_i386.deb Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname) 
Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/universe/c/cheese/libcheese-gtk21_3.4.1-0ubuntu2.1_i386.deb Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname) 
Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/universe/g/gnome-video-effects/gnome-video-effects_0.4.0-1_all.deb Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname) 
Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/c/clutter-1.0/libclutter-1.0-common_1.10.6-1~precise1_all.deb Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname) 
Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/c/cogl/libcogl-common_1.10.0-0ubuntu2_all.deb Something wicked happened resolving 'in.archive.ubuntu.com:http' (-5 - No address associated with hostname) 
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? 

它似乎之前精細工作,但我不知道什麼得到了安裝,它開始顯示這麼多的錯誤。

已爲此問題提供的其他解決方案不適用於我,因爲我位於經過身份驗證的代理服務器的後面。我的IP是172.31.77.59,我的DNS服務器是172.31.100.8和172.31.100.9,我的代理服務器是172.31.100.29

我搜索了一些命令。貓的/ etc /網絡的輸出/接口是

auto lo 
iface lo inet loopback 

或許有助於解決問題

+0

這與編程有什麼關係? – 2013-05-05 21:56:07

回答

4

進入到/ etc /公寓/ conf目錄並插入HTTP_PROXY =「HTTP://用戶名:密碼@服務器端口」。

您還應該將系統範圍變量設置爲export http_proxy ...。將其放入您的〜/ .bashrc並重新啓動。

+0

我已經在我的/etc/apt/apt.conf文件中包含了詳細信息,可以請您詳細說明如何在〜/ .bashrc中導出 – 2013-05-05 22:01:46

+0

只需編寫「export http_proxy = ...」,就像上面一樣,不用「。效果後重啓。 – 2013-05-05 22:13:19

+0

感謝好友:) – 2013-05-05 22:27:56