apt-upgrade wants to downgrade vagrant

Briefly describe your issue below:
Everytime I goto apt-get upgrade or even parrot upgrade it wants to downgrade my vagrant which makes my metasploitable3 vm unusable. How can I fix this if possible? Upgrade everything then just reinstall manually the latest vagrant?

What version of Parrot are you running? (include version, edition, and architecture)
Linux parrot 4.19.0-parrot1-20t-amd64 #1 SMP Parrot 4.19.20-2parrot1.20t (2019-03-09) x86_64 GNU/Linux
What method did you use to install Parrot? (Debian Standard / Debian GTK / parrot-experimental)
Debian Standard
Configured to multiboot with other systems? (yes / no)
Hell no. F windows
If there are any similar issues or solutions, link to them below:
Cant find anything related.
If there are any error messages or relevant logs, post them below:

Hi, please do not run apt-get upgrade, this will do a partial upgrade that will break your system.
Use this instead:

sudo apt update && sudo apt dist-upgrade

PS: apt and apt-get do the same thing

1 Like

jeeze i feel like an idiot. thank you. Whats the difference between running that and parrot-upgrade?

1 Like

so when I install things I should use apt install rather than apt-get install correct?

I too would like to know. A google search didn’t help me much with this one.

Check here on apt vs apt-get differences.

TL;DR apt is used nowadays with common commands of the apt package and it does pretty much the same. It was introduced essentially as something more user-friendly for the front-end users.

1 Like

nano /usr/bin/parrot-u*
Or
nano /usr/local/bin/parrot-up*

You find out difference

Well parrot-upgrade is just a script, here is what it run:

#!/bin/bash
set -e
DEBIAN_FRONTEND=noninteractive
apt update || echo failed to update index lists
dpkg --configure -a || echo failed to fix interrupted upgrades
apt --fix-broken --fix-missing install || echo failed to fix conflicts
apt -y --allow-downgrades --fix-broken --fix-missing dist-upgrade

And installing stuff using apt or apt-get doesnt change much, i prefer to use apt because it is newer and less letters to type :wink:

1 Like

Using the command sudo parrot-upgrade or even sudo apt update && sudo apt dist-upgrade both still give me this and want to downgrade vagrant? Any way to add an exclusion? Metasploitable3 requires updated version of vagrant.

The following packages will be DOWNGRADED:
vagrant
0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
Need to get 479 kB of archives.
After this operation, 114 MB disk space will be freed.
Get:1 http://ftp.osuosl.org/pub/parrotos parrot/main amd64 vagrant all 2.2.3+dfsg-1 [479 kB]
Fetched 479 kB in 2s (256 kB/s)
dpkg: warning: downgrading vagrant from 1:2.2.4 to 2.2.3+dfsg-1
(Reading database … 509492 files and directories currently installed.)
Preparing to unpack …/vagrant_2.2.3+dfsg-1_all.deb …
Unpacking vagrant (2.2.3+dfsg-1) over (1:2.2.4) …
Setting up vagrant (2.2.3+dfsg-1) …
Processing triggers for man-db (2.8.5-2) …
Scanning processes…
Scanning processor microcode…
Scanning linux images…

Parrot-upgrade is a script that do common upgrade commands automatically

┌─[dmknght@parrot]─[~]
└──╼ $cat `which parrot-upgrade`
#!/bin/bash
set -e
DEBIAN_FRONTEND=noninteractive
apt update || echo failed to update index lists
dpkg --configure -a || echo failed to fix interrupted upgrades
apt --fix-broken --fix-missing install || echo failed to fix conflicts
apt -y --allow-downgrades --fix-broken --fix-missing dist-upgrade

P/s: sorry i’ve made a duplicate comment :stuck_out_tongue:

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.