Author Topic: clean /usr/pluto/deb-cache  (Read 2634 times)

Esperanto

  • Guru
  • ****
  • Posts: 281
    • View Profile
clean /usr/pluto/deb-cache
« 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.

l3mce

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1084
    • View Profile
Re: clean /usr/pluto/deb-cache
« Reply #1 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
I never quit... I just ping out.

Esperanto

  • Guru
  • ****
  • Posts: 281
    • View Profile
Re: clean /usr/pluto/deb-cache
« Reply #2 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.