[Haskell-cafe] cabal: internal error when reading package index

2013-09-18 Thread Henk-Jan van Tuyl


L.S.,

I was trying to install a package from a local drive and got the following  
message:

  cabal install
  Resolving dependencies...
  cabal: internal error when reading package index: could not read tar file
  entryThe package index or index cache is probably corrupt. Running cabal
  update might fix it.

Then I tried cabal update:
  cabal update
  Downloading the latest package list from hackage.haskell.org
  Skipping download: Local and remote files match.
  Note: there is a new version of cabal-install available.
  To upgrade, run: cabal install cabal-install

Trying the command
  cabal install cabal-install
gave the same internal error message as for the first command.

What can I do about this?

Regards,
Henk-Jan van Tuyl


--
Folding@home
What if you could share your unused computer power to help find a cure? In  
just 5 minutes you can join the world's biggest networked computer and get  
us closer sooner. Watch the video.

http://folding.stanford.edu/


http://Van.Tuyl.eu/
http://members.chello.nl/hjgtuyl/tourdemonad.html
Haskell programming
--
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] cabal: internal error when reading package index

2013-09-18 Thread Ivan Lazar Miljenovic
On 18 September 2013 19:23, Henk-Jan van Tuyl hjgt...@chello.nl wrote:

 L.S.,

 I was trying to install a package from a local drive and got the following
 message:
   cabal install
   Resolving dependencies...
   cabal: internal error when reading package index: could not read tar file
   entryThe package index or index cache is probably corrupt. Running cabal
   update might fix it.

 Then I tried cabal update:
   cabal update
   Downloading the latest package list from hackage.haskell.org
   Skipping download: Local and remote files match.
   Note: there is a new version of cabal-install available.
   To upgrade, run: cabal install cabal-install

 Trying the command
   cabal install cabal-install
 gave the same internal error message as for the first command.

 What can I do about this?

Maybe try deleting the current download?  Namely
~/.cabal/packages/hackage.haskell.org/00-index.*


 Regards,
 Henk-Jan van Tuyl


 --
 Folding@home
 What if you could share your unused computer power to help find a cure? In
 just 5 minutes you can join the world's biggest networked computer and get
 us closer sooner. Watch the video.
 http://folding.stanford.edu/


 http://Van.Tuyl.eu/
 http://members.chello.nl/hjgtuyl/tourdemonad.html
 Haskell programming
 --
 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe



-- 
Ivan Lazar Miljenovic
ivan.miljeno...@gmail.com
http://IvanMiljenovic.wordpress.com
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe