Yes, thanks I figured, which files/folders in particular? All folders seem 
to have the same perms drwxr-xr-x, files in .git/objects/XX have -r--r--r-- 
and they're all owned by my user.
It's just a little strange that it occurred all of a sudden. 
I had just added https://github.com/timholy/ProgressMeter.jl possibly it 
had something to do with it.

Anyway let's just move on to more important things now :) as I mentioned it 
seems to be working fine now after running:
sudo julia
Pkg.update()

and then after quitting and restarting julia without sudo. Pkg.update() has 
no issues

Cheers.

On Wednesday, 1 October 2014 16:33:28 UTC+3, Stefan Karpinski wrote:
>
> You don't have sufficient permissions to modify the directory where the 
> package git repositories live. Take a look in ~/.julia and see what the 
> permissions are.
>
> On Wed, Oct 1, 2014 at 8:04 AM, JobJob <[email protected] <javascript:>> 
> wrote:
>
>> Couldn't find anyone else with this error, so presumably it was something 
>> idiosyncratic to my system.
>>
>> Anyhoo just ran Pkg.update() and got this error:
>>
>>
>> julia> Pkg.update()
>>
>> INFO: Updating METADATA...
>>
>> error: insufficient permission for adding an object to repository 
>> database .git/objects
>>
>> fatal: failed to write object
>>
>> fatal: unpack-objects failed
>>
>> ERROR: failed process: Process(`git pull -q`, ProcessExited(1)) [1]
>>
>>  in pipeline_error at process.jl:502
>>
>>  in run at pkg/git.jl:22
>>
>>  in anonymous at pkg/entry.jl:246
>>
>>  in with_env at env.jl:177
>>
>>  in anonymous at pkg/entry.jl:245
>>
>>  in cd at file.jl:20
>>
>>  in update at pkg/entry.jl:235
>>
>>  in anonymous at pkg/dir.jl:28
>>
>>  in cd at file.jl:20
>>
>>  in cd at pkg/dir.jl:28
>>
>>  in update at pkg.jl:41
>>
>>
>> restarting with: sudo julia 
>>
>> fixed the issue and Pkg.update() now runs fine even with julia started 
>> without sudo, but not sure how/why this would have happened now, I don't 
>> remember ever running julia as root before. Issue existed using both Julia 
>> 0.3.0 release and after upgrading to 0.3.1 release. I have been using 
>> ijulia a bit lately and may have added some packages there for the first 
>> time, but it wasn't running as root I don't believe.
>>
>>
>> I guess I'm more posting this for others that may see the same issue, so 
>> no need to reply, but if someone can scratch my curiosity's itch then that 
>> would be most welcome :)
>>
>
>

Reply via email to