Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: Unexpected end of data : General.tar #254

Closed
yanyu2015 opened this issue Dec 25, 2021 · 2 comments
Closed

ERROR: Unexpected end of data : General.tar #254

yanyu2015 opened this issue Dec 25, 2021 · 2 comments

Comments

@yanyu2015
Copy link

when install with:

Pkg.add("OhMyREPL")

raise error:

ERROR: Unexpected end of data : General.tar
ERROR: EOFError: read end of file
Stacktrace:
  [1] read_data(tar::Base.Process, file::IOBuffer; size::Int64, buf::Vector{UInt8}, tee::Base.DevNull)
    @ Tar D:\DataScience\julia\Julia-1.7.0\share\julia\stdlib\v1.7\Tar\src\extract.jl:706
  [2] #12
    @ D:\DataScience\julia\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\Registry\registry_instance.jl:201 [inlined]
  [3] read_tarball(callback::Pkg.Registry.var"#12#15"{Base.Process, IOBuffer, Vector{UInt8}, Dict{String, String}}, predicate::Pkg.Registry.var"#13#16", tar::Base.Process; buf::Vector{UInt8}, skeleton::Base.DevNull)
    @ Tar D:\DataScience\julia\Julia-1.7.0\share\julia\stdlib\v1.7\Tar\src\extract.jl:399
  [4] #11
    @ D:\DataScience\julia\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\Registry\registry_instance.jl:199 [inlined]
  [5] open(::Pkg.Registry.var"#11#14"{IOBuffer, Vector{UInt8}, Dict{String, String}}, ::Cmd; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Base .\process.jl:395
  [6] open
    @ .\process.jl:393 [inlined]
  [7] uncompress_registry(tar_gz::String)
    @ Pkg.Registry D:\DataScience\julia\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\Registry\registry_instance.jl:198
  [8] Pkg.Registry.RegistryInstance(path::String)
    @ Pkg.Registry D:\DataScience\julia\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\Registry\registry_instance.jl:266
  [9] reachable_registries(; depots::Vector{String})
    @ Pkg.Registry D:\DataScience\julia\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\Registry\registry_instance.jl:373
 [10] reachable_registries
    @ D:\DataScience\julia\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\Registry\registry_instance.jl:345 [inlined]
 [11] download_default_registries(io::Base.TTY; only_if_empty::Bool)
    @ Pkg.Registry D:\DataScience\julia\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\Registry\Registry.jl:101
 [12] download_default_registries
    @ D:\DataScience\julia\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\Registry\Registry.jl:101 [inlined]
 [13] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Pkg.API D:\DataScience\julia\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\API.jl:144
 [14] add(pkgs::Vector{Pkg.Types.PackageSpec})
    @ Pkg.API D:\DataScience\julia\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\API.jl:144
 [15] #add#27
    @ D:\DataScience\julia\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\API.jl:142 [inlined]
 [16] add
    @ D:\DataScience\julia\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\API.jl:142 [inlined]
 [17] #add#26
    @ D:\DataScience\julia\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\API.jl:141 [inlined]
 [18] add(pkg::String)
    @ Pkg.API D:\DataScience\julia\Julia-1.7.0\share\julia\stdlib\v1.7\Pkg\src\API.jl:141
 [19] top-level scope
    @ REPL[5]:1
@KristofferC
Copy link
Owner

I would try clean out .julia/registries and try again.

@yanyu2015
Copy link
Author

thx!!! it works well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants