Skip to content

Instantly share code, notes, and snippets.

@matiasgarciaisaia
Created November 10, 2016 19:29
Show Gist options
  • Save matiasgarciaisaia/47b47c997aa249d2f999aa37bb01a8c3 to your computer and use it in GitHub Desktop.
Save matiasgarciaisaia/47b47c997aa249d2f999aa37bb01a8c3 to your computer and use it in GitHub Desktop.
sudo apt-get install crystal fails on standard Bash on Ubuntu/Win10
user@MSEDGEWIN10:/mnt/c/Windows/System32$ sudo apt-get install crystal
sudo: unable to resolve host MSEDGEWIN10
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libfreetype6 os-prober
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
crystal
0 upgraded, 1 newly installed, 0 to remove and 32 not upgraded.
Need to get 16.9 MB of archives.
After this operation, 54.6 MB of additional disk space will be used.
Fetched 16.9 MB in 14s (1,163 kB/s)
Selecting previously unselected package crystal.
(Reading database ... 26399 files and directories currently installed.)
Preparing to unpack .../crystal_0.19.4-1_amd64.deb ...
You're about to install crystal!
Unpacking crystal (0.19.4-1) ...
dpkg: error processing archive /var/cache/apt/archives/crystal_0.19.4-1_amd64.deb (--unpack):
unable to open '/opt/crystal/embedded/bin/shards.dpkg-new': Permission denied
dmesg: klogctl failed: Function not implemented
crystal has been uninstalled!
E: Sub-process /usr/bin/dpkg returned an error code (1)
@matiasgarciaisaia
Copy link
Author

I've sudo mkdir -p /opt/crystal/embedded/bin/ and reinstalled - and it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment