Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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:
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.
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!
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.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.