LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-05-2021, 05:54 AM   #1
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Rep: Reputation: Disabled
Installing Snort


All,

Trying to install SNORT on my Kubuntu 18.04 LTS server and getting the following errors"
Code:
apt install snort
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 snort : Depends: libdumbnet1 (>= 1.8) but it is not installable
E: Unable to correct problems, you have held broken packages.
Following all the HOWTOs on fixing broken packages and/or fixing "libdumbnet1" get me no where. One HOWTO even had me remove the lock files, but still no change. I found that HOWTO at:
Code:
https://www.maketecheasier.com/fix-broken-packages-ubuntu/
This is not the first time I've run into broken packages and all the HOWTOs have always been helpless, so hoping someone actually knows how to actually fix broken packages, other than the dribble nost have published that do not have a clue on fixing these scenarios.

Cheers!

TBNK
 
Old 08-05-2021, 06:17 AM   #2
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
Script

All,

Wrote this BASH script to assist in this and it also errors"
Code:
SCRIPT:
#! /bin/bash
# Script for fixing all broken packages
# Must run in the SUDO Mode
# CMD: bash "/my-path/fix-pkgs.sh"

apt update && sudo apt upgrade && apt dist-upgrade
apt-get autoremove && apt install update-manager-core
do-release-upgrade -d && apt install -f
Code:
ERRORS:
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 51 not upgraded.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
update-manager-core is already the newest version (1:18.04.11.13).
update-manager-core set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 51 not upgraded.
Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.
Do not understand this last line in the errors as no packages are listed that need upgrading. And every thing I have read never tells you how to list any broken packages and you cannot fix a package without know what it is, so a list is mandatory!

Cheers!

TBNK

Last edited by TBotNik; 08-05-2021 at 06:21 AM.
 
Old 08-05-2021, 11:00 AM   #3
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
List

All,

Finally found the right cmd to list the packages, but not sure if this is the right list. Lost the source I found it at, but cmd is:
Code:
apt list --upgradeable
Code:
apt list --upgradeable
Listing... Done
apt/bionic-updates 1.6.14 amd64 [upgradable from: 1.6.12ubuntu0.2]
apt-utils/bionic-updates 1.6.14 amd64 [upgradable from: 1.6.12ubuntu0.2]
dirmngr/bionic-updates 2.2.4-1ubuntu1.4 amd64 [upgradable from: 2.2.4-1ubuntu1.3]
friendly-recovery/bionic-updates,bionic-updates 0.2.38ubuntu1.2 all [upgradable from: 0.2.38ubuntu1.1]
gnome-shell/bionic-updates 3.28.4-0ubuntu18.04.7 amd64 [upgradable from: 3.28.4-0ubuntu18.04.3]
gnome-shell-common/bionic-updates,bionic-updates 3.28.4-0ubuntu18.04.7 all [upgradable from: 3.28.4-0ubuntu18.04.3]
gnupg/bionic-updates 2.2.4-1ubuntu1.4 amd64 [upgradable from: 2.2.4-1ubuntu1.3]
gnupg-agent/bionic-updates,bionic-updates 2.2.4-1ubuntu1.4 all [upgradable from: 2.2.4-1ubuntu1.3]
gnupg-l10n/bionic-updates,bionic-updates 2.2.4-1ubuntu1.4 all [upgradable from: 2.2.4-1ubuntu1.3]
gnupg-utils/bionic-updates 2.2.4-1ubuntu1.4 amd64 [upgradable from: 2.2.4-1ubuntu1.3]
gnupg2/bionic-updates,bionic-updates 2.2.4-1ubuntu1.4 all [upgradable from: 2.2.4-1ubuntu1.3]
gpg/bionic-updates 2.2.4-1ubuntu1.4 amd64 [upgradable from: 2.2.4-1ubuntu1.3]
gpg-agent/bionic-updates 2.2.4-1ubuntu1.4 amd64 [upgradable from: 2.2.4-1ubuntu1.3]
gpg-wks-client/bionic-updates 2.2.4-1ubuntu1.4 amd64 [upgradable from: 2.2.4-1ubuntu1.3]
gpg-wks-server/bionic-updates 2.2.4-1ubuntu1.4 amd64 [upgradable from: 2.2.4-1ubuntu1.3]
gpgconf/bionic-updates 2.2.4-1ubuntu1.4 amd64 [upgradable from: 2.2.4-1ubuntu1.3]
gpgsm/bionic-updates 2.2.4-1ubuntu1.4 amd64 [upgradable from: 2.2.4-1ubuntu1.3]
gpgv/bionic-updates 2.2.4-1ubuntu1.4 amd64 [upgradable from: 2.2.4-1ubuntu1.3]
gzip/bionic-updates 1.6-5ubuntu1.1 amd64 [upgradable from: 1.6-5ubuntu1]
initramfs-tools/bionic-updates,bionic-updates 0.130ubuntu3.13 all [upgradable from: 0.130ubuntu3.11]
initramfs-tools-bin/bionic-updates 0.130ubuntu3.13 amd64 [upgradable from: 0.130ubuntu3.11]
initramfs-tools-core/bionic-updates,bionic-updates 0.130ubuntu3.13 all [upgradable from: 0.130ubuntu3.11]
iproute2/bionic-updates 4.15.0-2ubuntu1.3 amd64 [upgradable from: 4.15.0-2ubuntu1.2]
libapt-inst2.0/bionic-updates 1.6.14 amd64 [upgradable from: 1.6.12ubuntu0.2]
libapt-pkg5.0/bionic-updates 1.6.14 amd64 [upgradable from: 1.6.12ubuntu0.2]
libasound2/bionic-updates 1.1.3-5ubuntu0.6 amd64 [upgradable from: 1.1.3-5ubuntu0.5]
libasound2-data/bionic-updates,bionic-updates 1.1.3-5ubuntu0.6 all [upgradable from: 1.1.3-5ubuntu0.5]
libpam-modules/bionic-updates 1.1.8-3.6ubuntu2.18.04.3 amd64 [upgradable from: 1.1.8-3.6ubuntu2.18.04.2]
libpam-modules-bin/bionic-updates 1.1.8-3.6ubuntu2.18.04.3 amd64 [upgradable from: 1.1.8-3.6ubuntu2.18.04.2]
libpam-runtime/bionic-updates,bionic-updates 1.1.8-3.6ubuntu2.18.04.3 all [upgradable from: 1.1.8-3.6ubuntu2.18.04.2]
libpam0g/bionic-updates 1.1.8-3.6ubuntu2.18.04.3 amd64 [upgradable from: 1.1.8-3.6ubuntu2.18.04.2]
libseccomp2/bionic-updates 2.5.1-1ubuntu1~18.04.1 amd64 [upgradable from: 2.4.3-1ubuntu3.18.04.3]
linux-base/bionic-updates,bionic-updates 4.5ubuntu1.6 all [upgradable from: 4.5ubuntu1.2]
linux-firmware/bionic-updates,bionic-updates 1.173.20 all [upgradable from: 1.173.19]
python-apt-common/bionic-updates,bionic-updates 1.6.5ubuntu0.6 all [upgradable from: 1.6.5ubuntu0.5]
python3-apt/bionic-updates 1.6.5ubuntu0.6 amd64 [upgradable from: 1.6.5ubuntu0.5]
python3-distupgrade/bionic-updates,bionic-updates 1:18.04.44 all [upgradable from: 1:18.04.42]
python3-httplib2/bionic-updates,bionic-updates 0.9.2+dfsg-1ubuntu0.3 all [upgradable from: 0.9.2+dfsg-1ubuntu0.2]
sbsigntool/bionic-updates 0.9.2-2ubuntu1~18.04.1 amd64 [upgradable from: 0.6-3.2ubuntu2]
snapd/bionic-updates 2.49.2+18.04 amd64 [upgradable from: 2.48.3+18.04]
squashfs-tools/bionic-updates 1:4.3-6ubuntu0.18.04.2 amd64 [upgradable from: 1:4.3-6ubuntu0.18.04.1]
teamviewer/stable 15.20.6 amd64 [upgradable from: 15.14.3]
ubuntu-advantage-tools/bionic-updates 27.2.2~18.04.1 all [upgradable from: 17]
ubuntu-drivers-common/bionic-updates 1:0.8.6.3~0.18.04.1 amd64 [upgradable from: 1:0.5.2.5]
ubuntu-keyring/bionic-updates,bionic-updates 2018.09.18.1~18.04.2 all [upgradable from: 2018.09.18.1~18.04.0]
ubuntu-release-upgrader-core/bionic-updates,bionic-updates 1:18.04.44 all [upgradable from: 1:18.04.42]
ubuntu-release-upgrader-qt/bionic-updates,bionic-updates 1:18.04.44 all [upgradable from: 1:18.04.42]
webmin/stable,stable 1.979 all [upgradable from: 1.974]
wireless-regdb/bionic-updates,bionic-updates 2021.07.14-0ubuntu1~18.04.1 all [upgradable from: 2020.11.20-0ubuntu1~18.04.1]
So also trying:
Code:
apt list --broken
But not working as running "man apt list" shows only:
Code:
list (work-in-progress)
           list is somewhat similar to dpkg-query --list in that it can display a list of packages
           satisfying certain criteria. It supports glob(7) patterns for matching package names as well as
           options to list installed (--installed), upgradeable (--upgradeable) or all available
           (--all-versions) versions.
So realizing I will need to run "apt list --all-versions" capture the results and then scroll through that to figure out what "grep" option to apply to actually get the broken packages.

Cheers!

TBNK
 
Old 08-05-2021, 11:03 AM   #4
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
All,

Even after getting the right list, then not sure how to clear them out. I guess putting those into an array and running "apt purge <package>" is one possibility.

TBNK
 
Old 08-05-2021, 11:06 AM   #5
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
All,

Seems this should be a core upgrade so the "apt list --broken" should be added and not sure where to submit that because is it Linux core or Debian core?

Also I mentioned I've had this problem before, which was with MySQL, which got corrupted and I had to erase the entire OS and re-install Kubuntu from DVD to fix that, which should never ever be required as all packages should have repairable fixes.

TBNK

Last edited by TBotNik; 08-05-2021 at 11:10 AM.
 
Old 08-05-2021, 11:10 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,838

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
I guess you need to try to install one of them and check what's going on. Do not try to purge all of them (but actually you know).
 
Old 08-05-2021, 11:22 AM   #7
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
All,

Running this combination:
Code:
apt list --all-versions > /mypath/apt-list-dump.txt
cat /3T/Syncs/Files/apt-list-dump.txt | grep broken
Produced:
Code:
libroken18-heimdal/now 7.5.0+dfsg-1 amd64 [installed,local]
python-zope.app.broken/bionic,bionic 3.6.0-0ubuntu3 all
python-zope.broken/bionic,bionic 3.6.0-0ubuntu2 all
And I never installed Python on my machine as it is not approved code and I keep everything legal on my machines. I'll be purging Python! Hope nothing else breaks by doing that.

Not sure what the first line means! Help on that appreciated.

Cheers!

TBNK

Last edited by TBotNik; 08-05-2021 at 11:24 AM.
 
Old 08-05-2021, 11:28 AM   #8
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
All,

Oh note on core upgrade the option "apt purge broken" must be added, so no one has to slug through all this crap to remove broken packages!

Cheers!

TBNK
 
Old 08-05-2021, 11:42 AM   #9
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Maybe you could do the upgrade package by package until you find the one(s) that fail. After all, the update told you there are 51 packages and the "apt list --upgradable" gave you the packages. It will not take more than -- (a long time) -- to upgrade them one at a time. That will narrow down the issue and maybe allow you to get it fixed.

I notice that apt and apt-utils are both in that list as well so you might start there. If one fails then continue on until everything but the failing one(s) are done and it will be narrowed down for what the fix is.
 
Old 01-01-2022, 02:30 AM   #10
TBotNik
Member
 
Registered: May 2016
Location: Greenville, TX
Distribution: Kubuntu 18.04
Posts: 796

Original Poster
Rep: Reputation: Disabled
Got this fixed, but forgot what I did, but marking it solved!

TBNK
 
Old 01-01-2022, 06:55 AM   #11
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by TBotNik View Post
Got this fixed, but forgot what I did, but marking it solved!
That's pointless. Please try to remember, and share your solution. Then mark it SOLVED.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Snort - no portscan and tcp alerts in snort av.dubey Linux - Software 6 07-11-2008 09:56 PM
Starting snort: ERROR: User "snort" unknown games1 Linux - Software 3 02-07-2007 08:21 PM
Error when starting up snort: bash:!/bin/sh/usr/local/bin/snort :Eent not found cynthia_thomas Linux - Software 1 11-11-2005 02:59 PM
snort failed: snort: symbol lookup error: undefined symbol: usmAES192PrivProtocol Emmanuel_uk Linux - Security 1 07-10-2005 10:29 AM
snort snort.conf help crealkiller175 Linux - Software 1 03-08-2003 05:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration