LinuxMCE Forums

General => Users => Topic started by: Esperanto on March 15, 2014, 12:50:49 pm

Title: clean /usr/pluto/deb-cache
Post by: Esperanto on March 15, 2014, 12:50:49 pm
How can I clean the deb-cache? I removed a ppa but it still got the entries in pluto's deb-cache.
Title: Re: clean /usr/pluto/deb-cache
Post by: l3mce on March 17, 2014, 03:18:04 pm
Delete everything and run:

dpkg-scanpackages /usr/pluto/deb-cache /dev/null | sed 's,\/usr\/pluto\/deb-cache\/,,g' | tee Packages | gzip -9c > /usr/pluto/deb-cache/Packages.gz

apt-get update
Title: Re: clean /usr/pluto/deb-cache
Post by: Esperanto on March 19, 2014, 04:42:57 pm
Delete everything
I assume you mean: rm -rf /usr/pluto/deb-cache/*
?
and run:
dpkg-scanpackages /usr/pluto/deb-cache /dev/null | sed 's,\/usr\/pluto\/deb-cache\/,,g' | tee Packages | gzip -9c > /usr/pluto/deb-cache/Packages.gz

apt-get update

that gave me:
Code: [Select]
W: Failed to fetch file:/usr/pluto/deb-cache/ubuntu-precise-i386/./Packages  File not found
E: Some index files failed to download. They have been ignored, or old ones used instead.