A partial shortcut to at least restore the list of packages that you had manuall installed would be to copy the REQUIRE file from your backed up copy of /home/shubham/.julia/v0.3 and copy that over into the re-initialized package directory.
On Saturday, September 19, 2015 at 3:03:13 AM UTC-7, Shubham Bhushan wrote: > > Did work, now I have to reinstall packages. But thanks for the resolution > > On Saturday, September 19, 2015 at 2:33:06 PM UTC+5:30, Pontus Stenetorp > wrote: >> >> On 19 September 2015 at 08:23, Shubham Bhushan <[email protected]> >> wrote: >> > >> > I have been trying to use Pkg.update and I keep getting these >> > julia> Pkg.update() >> > INFO: Updating METADATA... >> > fatal: Not a git repository (or any of the parent directories): .git >> > fatal: Not a git repository (or any of the parent directories): .git >> > fatal: Not a git repository (or any of the parent directories): .git >> > fatal: Not a git repository (or any of the parent directories): .git >> > fatal: Not a git repository (or any of the parent directories): .git >> > fatal: Not a git repository (or any of the parent directories): .git >> > fatal: Not a git repository (or any of the parent directories): .git >> > fatal: Not a git repository (or any of the parent directories): .git >> > fatal: Not a git repository (or any of the parent directories): .git >> > fatal: Not a git repository (or any of the parent directories): .git >> > fatal: Not a git repository (or any of the parent directories): .git >> > >> > and it terminates with >> > ERROR: failed process: Process(setenv(`git rev-parse --git-dir`; >> > dir="/home/shubham/.julia/v0.3/.cache/IJulia"), ProcessExited(128)) >> [128] >> > in wait at task.jl:51 >> > in sync_end at ./task.jl:311 >> > in update at ./pkg/entry.jl:256 >> > in anonymous at pkg/dir.jl:28 >> > in cd at ./file.jl:20 >> > in __cd#228__ at ./pkg/dir.jl:28 >> > in update at ./pkg.jl:41 >> > >> > Please help >> >> My best guess would be that you have a corrupted package directory. >> Someone more well-versed in the inner workings of the package manager >> could probably give a better answer. A quick hack would be to try >> moving away the old Julia directory using `mv ~/.julia{,_old}` and >> then re-installing any packages that you need. >> >> Pontus >> >
