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

E: Unable to locate package nc #416

Closed
olisteadman opened this issue Jul 16, 2019 · 1 comment
Closed

E: Unable to locate package nc #416

olisteadman opened this issue Jul 16, 2019 · 1 comment

Comments

@olisteadman
Copy link

Problem description

README.md suggests the use of nc in ln157
... but sudo apt install nc -y gives error E: Unable to locate package nc

Extra information

Presumably by nc you mean netcat

Stack configuration

N/A

Docker setup

N/A

Docker logs

N/A

@antoineco
Copy link
Collaborator

antoineco commented Jul 16, 2019

nc and netcat are the same program, but the package name may vary depending on the OS or OS distribution you use. Because you didn't specify what your environment was I'm gonna assume you're using Ubuntu and drop that extract from the OS documentation here:

Package netcat

bionic (18.04LTS) (net): TCP/IP swiss army knife -- transitional package [universe]
1.10-41.1: all
also provided by: netcat-openbsd, netcat-traditional

-- https://packages.ubuntu.com/search?keywords=netcat

Any of the highlighted package names should have you covered:

$ docker run ubuntu:bionic sh -c 'apt update && apt install -y netcat && which nc'

Fetched 16.8 MB in 2s (6983 kB/s)
Reading package lists...
Building dependency tree...



Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  netcat-traditional
The following NEW packages will be installed:
  netcat netcat-traditional
0 upgraded, 2 newly installed, 0 to remove and 8 not upgraded.
Need to get 65.1 kB of archives.
After this operation, 157 kB of additional disk space will be used.



Setting up netcat (1.10-41.1) ...
/bin/nc

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