2

I have a problem downloading packages with ubuntu server 18.04. I have had it working before. However, I have reinstalled the operating system and can no longer remember how I fixed it last time. I believe that last time I enabled/downloaded repositories. Can anyone help me?

sudo apt install shorewall
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package shorewall is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'shorewall' has no installation candidate
  • Please tell us which packages you cannot download. And please tell us the error output. Edit the original question (do not answer in comments). Indent each line of the output 4 spaces to render it as 'code' (to make it easier for us to read). – sudodus Jan 12 at 14:27
  • However, it won't download any package @sudodus – Isaac Jan 12 at 14:30
  • shorewall is in the repository 'universe'. Is it activated in your Ubuntu Server? Please run sudo add-apt-repository universe and after that sudo apt update and try again to install shorewall with sudo apt install shorewall – sudodus Jan 12 at 14:34
  • Thank you so much. Is there any other generic ones that i may have to install as well for other packages? But thanks this did the trick! – Isaac Jan 12 at 14:39
  • 3
    Possible duplicate of How do I enable the "Universe" repository? – user535733 Jan 12 at 15:38
0

Try looking if the package shorewall is listed under a different name by executing:

sudo apt-cache search shorewall

You may also want to search for the repository for shorewall from Google and add it to your /etc/apt/sources.list file

You can try: https://packages.ubuntu.com/trusty/all/shorewall/download and download the Shorewall .deb package for all architectures there, and install with dpkg

You should also look at http://www.shorewall.org/download.htm as they list the different requirements as well

New contributor
NETcrypt0r is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.