LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Problems with PPA repositories (https://www.linuxquestions.org/questions/ubuntu-63/problems-with-ppa-repositories-944059/)

enryfox 05-09-2012 08:35 AM

Problems with PPA repositories
 
I'm running ubuntu 12.04 and i'm having problems with PPA launchpad repositories: i add them using the command

Code:

sudo add-apt-repository ppa:.....
and everything works fine, but then with a

Code:

sudo apt-get update
I get hash mismatch errors.

Code:

......
bzip2: Data integrity error when decompressing

.....

W: Failed to fetch gzip:/var/lib/apt/lists/partial/ppa.launchpad.net_xxxxxxxxxxx_ubuntu_dists_precise_main_binary-amd64_Packages  Hash Sum mismatch

If I browse the PPA folders with Firefox and manually download the package file, I can expand it and read it with a text editor. I even tried copying it into /var/lib/apt/list and it is recognised by the synaptic (i.e. I can download listed packages). Problem is, the file automatically retrieved by apt-get and available in /var/lib/apt/list/partial is indeed corrupted and its size is different from what I manually download.

What is wrong ?

thanks in advance

k3lt01 05-10-2012 05:09 PM

Does the PPA have it's own instruction on how to add it? If it does try that method, maybe even add it manually and then try apt-get update.

enryfox 05-11-2012 01:35 AM

Actually after a long googling session and found a similar but seemingly unrelated problem with PPA's. Solution to that problem is to add in /etc/apt/conf.d a file named "99<whatever you want>" containing a simple line of text:

Code:

Acquire::http::Pipeline-Depth "0";
That has fixed my problems with http PPA's (the vast majority) but indeed I now have problems with ftp PPA's (like the one I used before...)

cheers


All times are GMT -5. The time now is 03:19 PM.