TreeList failed: Error in /var/db/sup/ports-all/checkouts.cvs:.
Posted by superuser
I tried to update my FreeBSD system to current using csup and i got the following error:
TreeList failed: Error in "/var/db/sup/ports-all/checkouts.cvs:.": 44453: File is truncated. Delete it and try again.
checkouts.cvs:. is a cvs bookkeeping file and when is missing or corrupted cvsup (csup) falls back.
Instead of deleting the entire ports tree i find this solution :
# cd /var/db/sup/ports-all/
# sed -i~ -e '44453d' checkouts.cvs:.
Note that the 44453 indicates the number of corrupted line of checkouts.cvs:. Put the number of line reported in your case (and note the ending d).
Run again csup. and the missing line will be replaced with the correct data. In my case this solved the problem.





