Skip to content

Instantly share code, notes, and snippets.

@shanku9
Created March 15, 2021 16:29
Show Gist options
  • Save shanku9/24bd0dbca5ec32d870d457e57e2053ce to your computer and use it in GitHub Desktop.
Save shanku9/24bd0dbca5ec32d870d457e57e2053ce to your computer and use it in GitHub Desktop.
1.32 to 1.4 upgrade
root@ip-192-168-1-93:/home/magma# apt policy magma
magma:
Installed: 1.3.2-1607585207-53c6e53f
Candidate: 1.3.2-1607585207-53c6e53f
root@ip-192-168-1-93:/home/magma# cat /etc/apt/sources.list.d/ovs_package_repo.list
deb http://packages.magma.etagecom.io stretch-1.4.0 main
root@ip-192-168-1-93:/home/magma# apt update
Get:1 http://packages.magma.etagecom.io stretch-1.4.0 InRelease [3546 B]
Ign:2 http://deb.debian.org/debian stretch InRelease
Get:3 http://packages.magma.etagecom.io stretch-1.4.0/main amd64 Packages [51.5 kB]
Hit:4 http://deb.debian.org/debian-security stretch/updates InRelease
Hit:5 http://deb.debian.org/debian stretch Release
Fetched 55.1 kB in 1s (36.5 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
46 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@ip-192-168-1-93:/home/magma# apt policy magma
magma:
Installed: 1.3.2-1607585207-53c6e53f
Candidate: 1.4.0-1615558425-d1a46cc3
root@ip-192-168-1-93:/home/magma# apt install magma
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
oai-asn1c-rel15 python3-cffi-backend python3-pyasn1 python3-pycrypto
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
getenvoy-envoy libmnl-dev libtins-dev libtins3.4 magma-sctpd oai-asn1c python3-grpcio python3-lxml python3-pycryptodome python3-pylint python3-pyroute2
python3-pystemd python3-python-redis-lock python3-redis-collections
The following NEW packages will be installed:
getenvoy-envoy libmnl-dev libtins-dev libtins3.4 oai-asn1c python3-pycryptodome python3-pyroute2 python3-python-redis-lock
The following packages will be upgraded:
magma magma-sctpd python3-grpcio python3-lxml python3-pylint python3-pystemd python3-redis-collections
7 upgraded, 8 newly installed, 0 to remove and 39 not upgraded.
Preparing to unpack .../08-python3-grpcio_1.36.1_amd64.deb ...
Unpacking python3-grpcio (1.36.1) over (1.16.1) ...
Selecting previously unselected package python3-python-redis-lock.
Preparing to unpack .../09-python3-python-redis-lock_3.7.0_all.deb ...
Unpacking python3-python-redis-lock (3.7.0) ...
Preparing to unpack .../10-python3-lxml_4.6.2_amd64.deb ...
Unpacking python3-lxml (4.6.2) over (4.2.1) ...
Preparing to unpack .../11-python3-redis-collections_0.9.0_all.deb ...
Unpacking python3-redis-collections (0.9.0) over (0.8.1) ...
Selecting previously unselected package oai-asn1c.
Preparing to unpack .../12-oai-asn1c_0~20170324+c0~r224dc1f9-0_amd64.deb ...
Unpacking oai-asn1c (0~20170324+c0~r224dc1f9-0) ...
dpkg: error processing archive /tmp/apt-dpkg-install-3iS9Co/12-oai-asn1c_0~20170324+c0~r224dc1f9-0_amd64.deb (--unpack):
trying to overwrite '/usr/local/bin/enber', which is also in package oai-asn1c-rel15 0~20190423+c0~rf12568d6-0
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../13-magma-sctpd_1.4.0-1615558425-d1a46cc3_amd64.deb ...
Unpacking magma-sctpd (1.4.0-1615558425-d1a46cc3) over (1.3.2-1607585207-53c6e53f) ...
Preparing to unpack .../14-magma_1.4.0-1615558425-d1a46cc3_amd64.deb ...
Unpacking magma (1.4.0-1615558425-d1a46cc3) over (1.3.2-1607585207-53c6e53f) ...
dpkg: error processing archive /tmp/apt-dpkg-install-3iS9Co/14-magma_1.4.0-1615558425-d1a46cc3_amd64.deb (--unpack):
trying to overwrite '/etc/logrotate.d/rsyslog', which is also in package rsyslog 8.24.0-1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Synchronizing state of redis-server.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable redis-server
Synchronizing state of dnsmasq.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable dnsmasq
Synchronizing state of lighttpd.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable lighttpd
Errors were encountered while processing:
/tmp/apt-dpkg-install-3iS9Co/07-python3-pycryptodome_3.9.9_amd64.deb
/tmp/apt-dpkg-install-3iS9Co/12-oai-asn1c_0~20170324+c0~r224dc1f9-0_amd64.deb
/tmp/apt-dpkg-install-3iS9Co/14-magma_1.4.0-1615558425-d1a46cc3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@ip-192-168-1-93:/home/magma#
root@ip-192-168-1-93:/home/magma# sudo apt install magma=1.4.0-1615558425-d1a46cc3 -o Dpkg::Options::="--force-overwrite"
root@ip-192-168-1-93:/home/magma#
Setting up python3-pystemd (0.8.0) ...
Setting up python3-pyroute2 (0.3.16-1) ...
Processing triggers for rsyslog (8.24.0-1) ...
Setting up libtins-dev (3.4-2+b1) ...
Setting up magma (1.4.0-1615558425-d1a46cc3) ...
Installing new version of config file /etc/logrotate.d/rsyslog ...
Installing new version of config file /etc/magma/ctraced.yml ...
Installing new version of config file /etc/magma/directoryd.yml ...
Installing new version of config file /etc/magma/gateway.mconfig ...
Installing new version of config file /etc/magma/health.yml ...
Installing new version of config file /etc/magma/magmad.yml ...
Installing new version of config file /etc/magma/mme.yml ...
Installing new version of config file /etc/magma/mobilityd.yml ...
Installing new version of config file /etc/magma/pipelined.yml ...
Installing new version of config file /etc/magma/pipelined.yml_prod ...
Installing new version of config file /etc/magma/service_registry.yml ...
Installing new version of config file /etc/magma/sessiond.yml ...
Installing new version of config file /etc/magma/sessiond.yml_prod ...
Installing new version of config file /etc/magma/state.yml ...
Installing new version of config file /etc/magma/subscriberdb.yml ...
Installing new version of config file /etc/magma/templates/mme.conf.template ...
Installing new version of config file /etc/systemd/system/magma@mme.service ...
Installing new version of config file /etc/systemd/system/magma@pipelined.service ...
Synchronizing state of redis-server.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable redis-server
Synchronizing state of dnsmasq.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable dnsmasq
Synchronizing state of lighttpd.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable lighttpd
Job for magma@mobilityd.service canceled.
Job for magma@pipelined.service canceled.
Job for magma@mme.service canceled.
root@ip-192-168-1-93:/home/magma#
root@ip-192-168-1-93:/home/magma#
root@ip-192-168-1-93:/home/magma# apt policy magma
magma:
Installed: 1.4.0-1615558425-d1a46cc3
Candidate: 1.4.0-1615558425-d1a46cc3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment