LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-06-2018, 03:06 PM   #1
banderas20
Member
 
Registered: Aug 2018
Posts: 138

Rep: Reputation: Disabled
Question Problem removing interface br0 and dependencies


Hello,

the other day I installed the package "bridge-utils" and added a br0 interface. Now I have purged the package and removed the lines regarding br0 from interfaces file by hand.
However, after "service networking restart" and "ifconfig", br0 is still there.

I have issued an apt-get autoremove to uninstall dependency packages, with no success.

Now I have 2 packages which I have tried to uninstall, that look like this:

pi libatk-adaptor:amd64
pi libatk-bridge2.0-0:amd64

If I try to purge them, it complains:

Code:
dpkg --purge libatk-adaptor:amd64
dpkg: dependency problems prevent removal of libatk-adaptor:amd64:
 python3-pyatspi depends on libatk-adaptor (>= 2.11.2).

dpkg: error processing package libatk-adaptor:amd64 (--purge):
 dependency problems - not removing
Errors were encountered while processing:
 libatk-adaptor:amd64
¿what does "pi" mean? ¿How can I workaround the dependency problems?

¿Any help?

Thanks and regards!

Last edited by banderas20; 08-06-2018 at 03:09 PM.
 
Old 08-07-2018, 03:51 AM   #2
ajo0909
LQ Newbie
 
Registered: Jun 2006
Distribution: Debian (Sarge,Sid,Etch)
Posts: 8

Rep: Reputation: 1
meaning of dpkg's "pi" package state

the - "p" means the package was purged, so its already removed

the - "i" means it will be installed again.

Explanation:

Yo have removed some packages but some other perhaps very important for the Operating System packages are dependent on those removed ones, so the Operating system wants them back and if it does not receive them back soon your system possibly will be broken. Possibly already is. The way to resolve situation is to call:

$ sudo apt-get -f install

which will install the libatk-adaptor back and its status wont'be a - pi, any more but the usual - ii.




The br0 is there probably because you have set it over brctl utility, and not over /etc/networks/interfaces or /etc/netplan/netplan.cfg or etc..

So to remove br0 you need to use the same brctl utility, and call of

$ brctl -h

can show you how you can do it.


But to accomplish this you will need the bridge-utils installed back on the system.

P.S:

you could do the same as well with:

$ sudo ip link set down dev br0 && sudo ip link del dev br0

.. without the brctl utility.. this will remove the br0 for the present.



To the possibility of walking around the dependancy problems...:

to remove some package one should remove all the dpenendancies of the mentioned package,

one should only be absolutely shure what those dependancies are and weather those a really needed, - or the system will be broken otherwise.

To know what dependancies of the package are in beforhand: - one could look into /var/cache/apt/archives/ if the libatk-adaptor*.deb package is probably there...

then one could call:

dpkg-deb -I /var/cache/apt/archives/libatk-adaptor_<the version of the package here>.deb

and read the dependencies listed with it.

Then one remembers that libglib* or libc* or glib*, should those be listed among the dependencies, are the basis of any linux system and should never be purged

.. - or you remain sitting before frozen screen and the next boot will be from the installation media to install linux from scratch.

So those packages should be never purged! but the others possibly yes...

the fazit of this is if you don't really know very much of linux or what you a really gong to do, -never use dpkg for operations on the packages, you should use

aptitude

or

apt-get

for this, these package operation utilities provide you with more security, but still they never substitute the knowing of possible results of your actions.



Last but not least did you check the state of bridge-utils package?

Because if you are saying that the br0 is still there after reboot the bridge-utils should be still installed and not removed as you told.

Last edited by ajo0909; 08-07-2018 at 04:13 AM.
 
1 members found this post helpful.
Old 08-07-2018, 04:19 AM   #3
banderas20
Member
 
Registered: Aug 2018
Posts: 138

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ajo0909 View Post

Last but not least did you check the state of bridge-utils package?

Because if you are saying that the br0 is still there after reboot the bridge-utils should be still installed and not removed as you told.
bridge-utils package is removed, and after the reboot of the server br0 is gone

Thanks for your explanation!
 
  


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
Removing a file and all dependencies jyunker Linux - Newbie 2 10-07-2014 03:36 PM
[SOLVED] Will removing old kernels break any dependencies? jamison20000e Linux - Kernel 2 10-29-2013 03:34 PM
Removing dependencies in Packages ? ashrafzia Linux - Software 3 06-11-2006 12:29 AM
Removing unneeded old dependencies pulsez Fedora 5 09-16-2005 01:18 AM
apt not removing dependencies JetJock Debian 11 06-18-2005 02:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:27 AM.

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