Skip to content

Can not upgrade frr package versions Ubuntu 18.04 #5800

Open
@nix-power

Description

@nix-power

Describe the bug
When trying to apt-get install frr , or running apt-get upgrade frr and frr-pythontools packages
are not being upgraded. Upgrade fails with the following error:

apt-get install frr
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  frr-doc
Recommended packages:
  frr-pythontools
The following packages will be upgraded:
  frr
1 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Need to get 0 B/2,342 kB of archives.
After this operation, 7,168 B of additional disk space will be used.
(Reading database ... 131960 files and directories currently installed.)
Preparing to unpack .../frr_7.2.1-1~ubuntu18.04.1_amd64.deb ...
/etc/frr/daemons: line 54: watchfrr_enable: command not found
dpkg: error processing archive /var/cache/apt/archives/frr_7.2.1-1~ubuntu18.04.1_amd64.deb (--unpack):
 new frr package pre-installation script subprocess returned error exit status 127
addgroup: The group `frrvty' already exists as a system group. Exiting.
addgroup: The group `frr' already exists as a system group. Exiting.
The system user `frr' already exists. Exiting.
Errors were encountered while processing:
 /var/cache/apt/archives/frr_7.2.1-1~ubuntu18.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

The only way to install new version is to purge old packages and to make clean install with apt-get. This behaviour happens due to postinst script that creates system groups and if they exist, throws an error (due to set -e)

#!/bin/sh
set -e

# most of this file makes sense to execute regardless of whether this is any
# of normal "configure" or error-handling "abort-upgrade", "abort-remove" or
# "abort-deconfigure"

addgroup --system frrvty
addgroup --system frr
adduser \
	--system \
	--ingroup frr \
	--home /nonexistent \
	--gecos "Frr routing suite" \
	--no-create-home \
	frr
usermod -a -G frrvty frr

mkdir -p /var/log/frr
mkdir -p /etc/frr

Expected behavior
Expecting to upgrade version of packages seamlessly.

Versions

  • OS Kernel: Ubuntu 18.04 LTS
  • FRR Version 7.x

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions