Advertising

Welcome to SparkyLinux forums
Zapraszamy również na polsko-języczne Forum https://forum.linuxiarze.pl

(Solved!) New Upgrade Error

Started by frogprince, March 31, 2014, 12:36:53 AM

Previous topic - Next topic

frogprince

Here we go again! Today, when running apt-get update, I got the error message:



W: Failed to fetch xz:/var/lib/apt/lists/partial/ftp.debian.org_debian_dists_testing_main_binary-i386_Packages  Hash Sum mismatch



E: Some index files failed to download. They have been ignored, or old ones used instead.



I ran:



wget -O - http://sparkylinux.org/repo/sparkylinux.gpg.key | apt-key add -

--2014-03-30 18:11:05--  http://sparkylinux.org/repo/sparkylinux.gpg.key

Resolving sparkylinux.org (sparkylinux.org)... 193.107.90.66

Connecting to sparkylinux.org (sparkylinux.org)|193.107.90.66|:80... connected.

HTTP request sent, awaiting response... 200 OKBut g

Length: 1748 (1.7K)

Saving to: 'STDOUT'



100%[======================================>] 1,748       --.-K/s   in 0s



2014-03-30 18:11:06 (50.7 MB/s) - written to stdout [1748/1748]



OK



But still got the same error message. Then I read



http://sparkylinux.org/forum/?mingleforumaction=viewtopic&t=101



and added



Acquire::Pdiffs "false"



to /etc/apt/sources.list, and ran apt-get update again. This time I got:



E: Type 'Acquire::Pdiffs' is not known on line 15 in source list /etc/apt/sources.list

E: The list of sources could not be read.



Could you help again, please? Thanks in advance.






pavroo

#1
Don't add it to the source list, remove it.

When you do that, run:

Code:

nano /etc/apt/apt.conf


and add to the file the text:

Code:

Acquire::PDiffs "false";


Then save the file 'apt.conf' and refresh packages list.

Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at [url="//irc.libera.chat"]irc.libera.chat[/url]

frogprince

#2
So..

1.) I do not recall in the 10 years I've been using Linux making two such stupid mistakes in a row. That being said:



2.) I found that I had edited /etc/apt/apt.conf during my most recent episode, and added Acquire::Pdiffs "false"; to it.

That turned out to be creating the problem. Removing that line from the file fixed the problem, allowing apt-get update

to run without error.



3.) After running apt-get update and apt-get upgrade, I then ran synaptic and upgraded through that application. I'm

curious; why did it find upgrades that the apt-get command did not? Are the repository lists different for the two processes?



Thanks for your patient help!




pavroo

#3

Quote:

I'm curious; why did it find upgrades that the apt-get command did not? Are the repository lists different for the two processes?


As you said, you used 'apt-get upgrade' which doesn't make full system upgrade. That why you have found more packages waiting for upgrading in Synaptic. If you use 'apt-get dist-upgrade' instead of 'apt-get upgrade' you will upgrade all the packages. 'apt-get dist-upgrade'  is the recommended way to keep Sparky up to date.

Quote:

I do not recall in the 10 years I've been using Linux making two such stupid mistakes in a row.


Don't worry, it happens to everybody and everyday, it happens to me as well :)
Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at [url="//irc.libera.chat"]irc.libera.chat[/url]

frogprince

#4
Pavroo: thank you; I learned something today.



Not only do you have a great distribution, but your support is the best I've ever experienced. Outstanding!

View the most recent posts on the forum