Skip to content

Commit fe560c9

Browse files
authored
Add sudo for apt-get (#2395)
1 parent 27366fd commit fe560c9

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ Pwntools is best supported on 64-bit Ubuntu LTS releases (14.04, 16.04, 18.04, a
3737
Python3 is suggested, but Pwntools still works with Python 2.7. Most of the functionality of pwntools is self-contained and Python-only. You should be able to get running quickly with
3838

3939
```sh
40-
apt-get update
41-
apt-get install python3 python3-pip python3-dev git libssl-dev libffi-dev build-essential
40+
sudo apt-get update
41+
sudo apt-get install python3 python3-pip python3-dev git libssl-dev libffi-dev build-essential
4242
python3 -m pip install --upgrade pip
4343
python3 -m pip install --upgrade pwntools
4444
```

docs/source/install.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ Python3
2828

2929
.. code-block:: bash
3030
31-
$ apt-get update
32-
$ apt-get install python3 python3-pip python3-dev git libssl-dev libffi-dev build-essential
31+
$ sudo apt-get update
32+
$ sudo apt-get install python3 python3-pip python3-dev git libssl-dev libffi-dev build-essential
3333
$ python3 -m pip install --upgrade pip
3434
$ python3 -m pip install --upgrade pwntools
3535
@@ -43,8 +43,8 @@ Additionally, due to `pip` dropping support for Python2, a specfic version of `p
4343

4444
.. code-block:: bash
4545
46-
$ apt-get update
47-
$ apt-get install python python-pip python-dev git libssl-dev libffi-dev build-essential
46+
$ sudo apt-get update
47+
$ sudo apt-get install python python-pip python-dev git libssl-dev libffi-dev build-essential
4848
$ python2 -m pip install --upgrade pip==20.3.4
4949
$ python2 -m pip install --upgrade pwntools
5050

docs/source/install/binutils.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ Ubuntu Xenial (16.04) has official packages for most architectures, and does not
1818

1919
.. code-block:: bash
2020
21-
$ apt-get install software-properties-common
22-
$ apt-add-repository ppa:pwntools/binutils
23-
$ apt-get update
21+
$ sudo apt-get install software-properties-common
22+
$ sudo apt-add-repository ppa:pwntools/binutils
23+
$ sudo apt-get update
2424
2525
Then, install the binutils for your architecture.
2626

2727
.. code-block:: bash
2828
29-
$ apt-get install binutils-$ARCH-linux-gnu
29+
$ sudo apt-get install binutils-$ARCH-linux-gnu
3030
3131
Mac OS X
3232
^^^^^^^^^^^^^^^^

docs/source/install/headers.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Ubuntu
1010

1111
.. code-block:: bash
1212
13-
$ apt-get install python-dev
13+
$ sudo apt-get install python-dev
1414
1515
Mac OS X
1616
^^^^^^^^^^^^^^^^

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
PythonH = os.path.join(get_python_inc(), 'Python.h')
6060
if not os.path.exists(PythonH):
6161
print("You must install the Python development headers!", file=sys.stderr)
62-
print("$ apt-get install python-dev", file=sys.stderr)
62+
print("$ sudo apt-get install python-dev", file=sys.stderr)
6363
sys.exit(-1)
6464

6565
setup(

0 commit comments

Comments
 (0)