Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions netsim/install/ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,6 @@ $SUDO apt-get upgrade -y $FLAG_APT
# Install missing packages
#
echo "Install missing packages (also a pretty long operation)"
# Add linux-modules-extra for e.g. vrf
# linux-modules-extra-$(uname -r) should exist, but it won't if we're running
# on a kernel that has been purged from the package server; in that case the
# user will likely need to reboot.
EXTRA=""
if apt-cache show linux-modules-extra-$(uname -r) > /dev/null; then
EXTRA="linux-modules-extra-$(uname -r)"
fi
# Added curl, which is not installed by default on Debian - ghostinthenet - 20220417
$SUDO apt-get -y $FLAG_APT install python3 python3-setuptools ifupdown python3-pip curl $EXTRA
Copy link

@zalekz zalekz Jul 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$SUDO apt-get -y $FLAG_APT install python3 python3-setuptools ifupdown python3-pip curl $EXTRA

Perhaps, there is no need in that $EXTRA variable on this line anymore

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that one should go out (the next time we're changing this script ;)

echo "Install nice-to-have packages"
Expand All @@ -30,3 +22,12 @@ echo "Install Python development and build modules"
$SUDO apt-get -y $FLAG_APT install build-essential python3-dev libffi-dev libssh-dev
echo "Installing XML libraries"
$SUDO apt-get -y $FLAG_APT install libxslt1-dev libssl-dev
# Add linux-modules-extra for e.g. vrf
# linux-modules-extra-$(uname -r) should exist, but it won't if we're running
# on a kernel that has been purged from the package server; in that case the
# user will likely need to reboot.
EXTRA="linux-modules-extra-$(uname -r)"
if [ -n "$(apt-cache search $EXTRA)" ]; then
echo "Installing additional Linux kernel modules"
sudo apt-get -y $FLAG_APT install $EXTRA
fi