Kali-rolling issue: kali-defaults collides with qubes-core-agent

296 views
Skip to first unread message

Max Andersen

unread,
Feb 28, 2018, 9:37:03 AM2/28/18
to qubes...@googlegroups.com
Hi,

I get an error when installing Kali rolling using the Qubes-guide :
https://www.qubes-os.org/doc/pentesting/kali/#create-a-kali-linux-rolling-template

The error comes when installing kali-defaults, which seems to collide
with qubes-core-agent:

user@Kali-Rolling:~$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  kali-defaults
The following NEW packages will be installed:
  kali-defaults
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1435 not fully installed or removed.
Need to get 0 B/1,545 kB of archives.
After this operation, 2,722 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 304913 files and directories currently installed.)
Preparing to unpack .../kali-defaults_2018.2.0_all.deb ...
Leaving 'diversion of /etc/skel/.bashrc to /etc/skel/.bashrc.original by
kali-defaults'
Leaving 'diversion of
/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml to
/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml.original by
kali-defaults'
Unpacking kali-defaults (2018.2.0) ...
dpkg: error processing archive
/var/cache/apt/archives/kali-defaults_2018.2.0_all.deb (--unpack):
 trying to overwrite '/etc/dconf/profile/user', which is also in
package qubes-core-agent 4.0.20-1+deb9u1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/kali-defaults_2018.2.0_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
user@Kali-Rolling:~$

I've tried forcing to no avail. Even trying to uninstall
qubes-core-agent, but It seems to be demanding more packages to be
uninstalled, than I might think maybe necessary.

user@Kali-Rolling:~$ sudo apt-get remove qubes-core-agent
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 kali-desktop-common : Depends: kali-defaults but it is not going to be
installed
 qubes-core-agent-networking : Depends: qubes-core-agent but it is not
going to be installed
 qubes-gui-agent : Depends: qubes-core-agent (>= 3.0.14) but it is not
going to be installed
 qubes-input-proxy-sender : Depends: qubes-core-agent (>= 3.0.25) but
it is not going to be installed
 qubes-vm-dependencies : Depends: qubes-core-agent but it is not going
to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages
(or specify a solution).
user@Kali-Rolling:~$


Any ideas?

Sincerely

Max

sevas

unread,
Mar 9, 2018, 2:48:40 AM3/9/18
to qubes-users
Im reviving this. I get the same errors about conflict of qubes-core-agent.

trying to overwrite '/etc/dconf/profile/user', which is also in
package qubes-core-agent 4.0.20-1+deb9u1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)

How do we solve this? Im going to attempt the HVM method.

Unman

unread,
Mar 9, 2018, 7:09:57 AM3/9/18
to sevas, qubes-users
It's a standard problem because two packages are providing the same file
which Debian doesn't like.
The solution ,(other than fixing the packages), is to use
apt-get with the --force-overwrite option. Of course, you'll then have
to manually deal with any updates to qubes-core-agent in the future.

sevas

unread,
Mar 9, 2018, 4:17:56 PM3/9/18
to qubes-users
ok so, I do a Force-Overwrite and then when qubes-packages need to
update, I can do another Force-Overwrite?

Or I could remove the conflicting package, I assume after the install
completes. I noticed that it tries to install grub, macchanger and
probably many others I dont really need in my kali-rolling VM.

-=I WILL KEEP A RECORD OF MY KALI TRIALS HERE=-

Katoolin installs the old kali repos. These are not as well maintained
or may not even exist... They arent even mentioned on the kali website
anymore.
-Yes Katoolin, after installing repos, updating and dist-upgrade; updates
exactly zero packages. katoolin doesnt seem very helpful for templates so far...

Unman

unread,
Mar 9, 2018, 5:23:23 PM3/9/18
to sevas, qubes-users
Yes, you'll always have to respond to the conflict to install new
versions, although it's possible that you'll just be prompted wit the
usual question about changed files, and which version you want.

Are you installing the packages with recommends? You might find it
useful to turn them off, if so.

sevas

unread,
Mar 9, 2018, 7:33:59 PM3/9/18
to qubes-users
By recommends I assume you mean the questions during install of kali-packages-full or whatever its called.

I tell it not change anything like
"should this package have root privileges or give users privilege?"
and I say NO!

The only other questions I received were
Do you want to install grub? and
Do you want to to set this service to have its own domain (lots of sniffing traffic) or work inside sql (little traffic)?

And I gave it its own domain I think. Or I picked the option for lots of traffic.

That doesnt sound too bad if I can easily overwrite the packages as needed. Ill give it a shot soon.

Unman

unread,
Mar 9, 2018, 8:10:01 PM3/9/18
to sevas, qubes-users
No - in Debian Packages are linked to other Packages - Depends,
Recommends, Suggests. Look in the Debian FAQ for explanation.
(http://www.debian.org/doc/manuals/debian-faq)

You can choose whether to install these additional packages by
configuring apt: either on the command line or by setting options in
/etc/apt/apt.conf.d
Look at the difference in what will be installed between:
apt-get install abiword
apt-get no-install-recommends install abiword
apt-get install -o APT::Install-Suggests="true" abiword

(Just say NO to each install)



Reply all
Reply to author
Forward
0 new messages