Page 1 of 2

How to tell what packages are broken..[Solved]

Posted: Sat Aug 11, 2018 10:53 pm
by KoO
How to tell what packages are broken as tiring to install glances and synaptic can,t fix this..

Re: How to tell what packages are broken..

Posted: Sat Aug 11, 2018 11:07 pm
by Adrian
Start with:

Code: Select all

dpkg --configure -a
Then:

Code: Select all

apt-get -f install
Make sure you read the prompts and not remove anything you don't need to remove.

Re: How to tell what packages are broken..

Posted: Sun Aug 12, 2018 7:43 pm
by KoO
@Adrian

As you can see from below not much happened after running your commands. Thanks for your time anyways..


antix# dpkg --configure -a
antix# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

If I try an install glances after the running the above commands still the same error.

The following packages have unmet dependencies:
glances : Depends: python3-psutil (>= 2.0.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
antix#

If i try to install python3-psutl

The following packages have unmet dependencies:
python3-psutil : Depends: python3 (< 3.6) but 3.6.6-1 is to be installed
E: Unable to correct problems, you have held broken packages.

I have glances install on my main desktop an everything runs just fine. Trying to install it on my T430 I just get the above everything is the same on both computers

https://github.com/nicolargo/glances I would do a pip install but their is no pip in the repository..

Re: How to tell what packages are broken..

Posted: Sun Aug 12, 2018 7:48 pm
by dolphin_oracle
what I generally do is keep drilling down until I find the offending package. In this case

Code: Select all

apt-install python3-psutil
and note what depends won't be installed (pretty sure a depend since the python3-psutil in the repo meets the version requirement).

and so on and so forth.

For what its worth, I didn't get any package conflict here with just our stable repos, which possibly means a package from test repo or some third party is conflicting.

Re: How to tell what packages are broken..

Posted: Sun Aug 12, 2018 7:49 pm
by Adrian
Ah, OK I understand now, it's not a broken package per se in your system the problem is in the repo. Maybe python3-psutil is < 2.0 You might ask packagers to re-package the program you want to install. Post a request in packaging request forum since it might need backporting.

Re: How to tell what packages are broken..

Posted: Sun Aug 12, 2018 8:32 pm
by KoO
Sorry to waste you time. Thanks

I installed python-pip ,python-setuptools , python-wheel.


pip install glances
Collecting glances
Using cached https://files.pythonhosted.org/packages ... 1.1.tar.gz
Collecting psutil>=2.0.0 (from glances)
Using cached https://files.pythonhosted.org/packages ... 4.6.tar.gz
Building wheels for collected packages: glances, psutil
Running setup.py bdist_wheel for glances ... done
Stored in directory: /home/koo/.cache/pip/wheels/25/1e/90/5c14b840f7ba3c72f3bb78c8c8d47f96b5bd32e8e7773867fa
Running setup.py bdist_wheel for psutil ... done
Stored in directory: /home/koo/.cache/pip/wheels/0a/61/aa/a6f8545fc2a5d4402e303832ed2ea02b046396049bc5f34008
Successfully built glances psutil
Installing collected packages: psutil, glances
Successfully installed glances-2.11.1 psutil-5.4.6

Re: How to tell what packages are broken..

Posted: Sun Aug 12, 2018 8:57 pm
by KoO
After installing with pip now all I get is
koo@antix:~➤ glances
zsh: command not found: glances

Re: How to tell what packages are broken..

Posted: Sun Aug 12, 2018 9:07 pm
by timkb4cq
Your main problem seems to be that you have python3 from debian sid installed, but were trying to install glances from a different repo.
Did you update python and then disable the sid repo?

Re: How to tell what packages are broken..

Posted: Mon Aug 13, 2018 4:17 am
by KoO
@timkq4cq

Yes you are right I found python 3.6.6.1 which is an unstable but can't even remove it as I still have broken packages. Too many versions and too many repository's just because I like to use i3 and not your normal run of the mill desktops, I suppose I pay the price. I have no idea how this happened maybe it came down with i3 I bloody know. But if I can't have i3 running on AntiX, antix is the wrong system for me. Thanks everyone for your help anyways

Re: How to tell what packages are broken..

Posted: Mon Aug 13, 2018 9:04 am
by anticapitalista
i3 works fine on antiX using default stable repos. Post your repo list (inxi -r)