Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Yesterday my server still OK, but today after try to sudo apt-get update i got this error: update process.

I try: sudo rm /var/lib/apt/lists/* -vf And got This.Then try update again, but it's not solving my problem then show May be still same error.


I checked my internet connection try ping google.com, get result :

PING google.com (74.125.235.40) 56(84) bytes of data.
From 136.198.117.254: icmp_seq=1 Redirect Network(New nexthop: fw1.jvc-jein.co.id (136.198.117.6))
64 bytes from sin01s05-in-f8.1e100.net (74.125.235.40): icmp_req=1 ttl=53 time=20.6 ms
64 bytes from sin01s05-in-f8.1e100.net (74.125.235.40): icmp_req=2 ttl=53 time=18.2 ms
64 bytes from sin01s05-in-f8.1e100.net (74.125.235.40): icmp_req=3 ttl=53 time=33.0 ms
64 bytes from sin01s05-in-f8.1e100.net (74.125.235.40): icmp_req=4 ttl=53 time=30.0 ms
64 bytes from sin01s05-in-f8.1e100.net (74.125.235.40): icmp_req=5 ttl=53 time=28.1 ms

In some sites said that may be it caused by getdeb server is down.


try to install:

jeinqa@SVRQAR:~$ sudo apt-get install pastebinit
Reading package lists... Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_precise-security_restricted_binary-amd64_Packages
E: The package lists or status file could not be parsed or opened.

try :

sudo ufw status verbose

result :

Status: inactive
share|improve this question
add comment

1 Answer 1

up vote 4 down vote accepted

Based on your test of simply attempting to fetch the google homepage, via wget -q -O- http://www.google.com, there is a firewall FW-1 on the machine/domain jeinfw which seems to be blocking most, if not all outbound http access. (Ping/ICMP is not the same as http, so just because ping works doesn't mean http also does).

That's why apt-get is failing -- instead of the content it expects, whether text, bzip2, gzip or xz, it always gets this HTML response from the firewall when it requests any file:

<TITLE>Error</TITLE>
<BODY>
<H1>Error</H1>
FW-1 at jeinfw: Access denied.
</BODY>

To resolve this:

You need to set up the HTTP proxy servers you were given! (I was told via chat!)

Assuming the server is http://139.xxx.xxx.xxx:8080,

  • Open the /etc/profile file with sudo nano (or your favorite editor). This file stores the system-wide variables initialized upon boot into the console.

  • Add the following lines, modifying appropriately. You must duplicate in both upper-case and lower-case because (unfortunately) some programs only look for one or the other:

    http_proxy=http://139.xxx.xxx.xxx:8080/
    https_proxy=http://139.xxx.xxx.xxx:8080/
    ftp_proxy=http://139.xxx.xxx.xxx:8080/
    no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com"
    HTTP_PROXY=http://139.xxx.xxx.xxx:8080/
    HTTPS_PROXY=http://139.xxx.xxx.xxx:8080/
    FTP_PROXY=http://139.xxx.xxx.xxx:8080/
    NO_PROXY="localhost,127.0.0.1,localaddress,.localdomain.com"
    

Then, set up the proxies for apt-get and Update Manager

  • These programs will not obey the environment variables. Create a file called 95proxies in /etc/apt/apt.conf.d/, and include the following:

    Acquire::http::proxy "http://139.xxx.xxx.xxx:8080/";
    Acquire::ftp::proxy "ftp://139.xxx.xxx.xxx:8080/";
    Acquire::https::proxy "https://139.xxx.xxx.xxx:8080/";
    

Finally, reboot the server to apply the changes.

share|improve this answer
    
it doesn't work. This is the apt-config dump output: paste.ubuntu.com/1053970 –  klox Jun 22 '12 at 9:45
    
There's something between apt-get and the internet - notice the 0B(yte) downloads and the failure to even get the package list in the error logs. –  izx Jun 23 '12 at 5:51
    
Please pastebin your /etc/apt/sources.list file, and also wget -O- http://www.google.com | pastebinit –  izx Jun 25 '12 at 4:55
    
source.list :pastebin.com/rvWJWJU4 and pastebin.com/fxADy6Rr –  klox Jun 25 '12 at 5:01
    
OK, there is a proxy server or something in your internet which is blocking HTTP accesses. When you wget the google homepage, the length should be Length: unspecified [text/html], NOT 82 which you get and the output should be paste.ubuntu.com/1058592 . –  izx Jun 25 '12 at 5:08
show 4 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.