Skip to content

Instantly share code, notes, and snippets.

@shanku9
Created March 16, 2021 22:33
Show Gist options
  • Save shanku9/30e0423933fbebd2bfc7a9748c34322c to your computer and use it in GitHub Desktop.
Save shanku9/30e0423933fbebd2bfc7a9748c34322c to your computer and use it in GitHub Desktop.
magma@132_vagw1:~$ ####DOWNGRADE 1.4.0 >> 1.3.2
magma@132_vagw1:~$
magma@132_vagw1:~$ sudo dpkg -l | grep magma
ii magma 1.4.0-1615912803-6bca6402 amd64 Magma Access Gateway
ii magma-cpp-redis 4.3.1.2-2 amd64 Redis C++ client library
ii magma-libfluid 0.1.0.5-1 amd64 Libfluid Openflow Controller
ii magma-sctpd 1.4.0-1615912803-6bca6402 amd64 Magma SCTPD
magma@132_vagw1:~$ sudo apt policy magma
magma:
Installed: 1.4.0-1615912803-6bca6402
Candidate: 1.4.0-1615912803-6bca6402
Version table:
*** 1.4.0-1615912803-6bca6402 900
900 http://packages.magma.etagecom.io stretch-1.4.0/main amd64 Packages
100 /var/lib/dpkg/status
1.4.0-1615688991-8cc9758c 900
900 http://packages.magma.etagecom.io stretch-1.4.0/main amd64 Packages
1.4.0-1615580281-a1e91416 900
900 http://packages.magma.etagecom.io stretch-1.4.0/main amd64 Packages
1.4.0-1615558425-d1a46cc3 900
900 http://packages.magma.etagecom.io stretch-1.4.0/main amd64 Packages
1.4.0-1615472961-80b98ea0 900
900 http://packages.magma.etagecom.io stretch-1.4.0/main amd64 Packages
1.4.0-1615299258-f9a78ea1 900
900 http://packages.magma.etagecom.io stretch-1.4.0/main amd64 Packages
1.4.0-1614954329-4e2f7d9f 900
900 http://packages.magma.etagecom.io stretch-1.4.0/main amd64 Packages
1.4.0-1614893339-bdf0bb18 900
900 http://packages.magma.etagecom.io stretch-1.4.0/main amd64 Packages
1.4.0-1614883336-42765294 900
900 http://packages.magma.etagecom.io stretch-1.4.0/main amd64 Packages
1.4.0-1614876731-b8df3ea1 900
900 http://packages.magma.etagecom.io stretch-1.4.0/main amd64 Packages
1.4.0-1614867470-7c07bce3 900
900 http://packages.magma.etagecom.io stretch-1.4.0/main amd64 Packages
1.4.0-1614780867-21b37c6a 900
900 http://packages.magma.etagecom.io stretch-1.4.0/main amd64 Packages
1.4.0-1614459929-3b949b2d 900
900 http://packages.magma.etagecom.io stretch-1.4.0/main amd64 Packages
1.4.0-1614359429-e2002b6d 900
900 http://packages.magma.etagecom.io stretch-1.4.0/main amd64 Packages
1.4.0-1614258391-4690a84a 900
900 http://packages.magma.etagecom.io stretch-1.4.0/main amd64 Packages
1.4.0-1614171043-7cd5877d 900
900 http://packages.magma.etagecom.io stretch-1.4.0/main amd64 Packages
1.4.0-1614048862-50d5b76a 900
900 http://packages.magma.etagecom.io stretch-1.4.0/main amd64 Packages
1.4.0-1613776353-ba8af577 900
900 http://packages.magma.etagecom.io stretch-1.4.0/main amd64 Packages
1.4.0-1613738139-0023df57 900
900 http://packages.magma.etagecom.io stretch-1.4.0/main amd64 Packages
1.4.0-1613567916-fa794d46 900
900 http://packages.magma.etagecom.io stretch-1.4.0/main amd64 Packages
1.4.0-1613174036-0aba273f 900
900 http://packages.magma.etagecom.io stretch-1.4.0/main amd64 Packages
1.4.0-1613159592-a0acef99 900
900 http://packages.magma.etagecom.io stretch-1.4.0/main amd64 Packages
1.4.0-1613148861-8ad3fe8a 900
900 http://packages.magma.etagecom.io stretch-1.4.0/main amd64 Packages
1.4.0-1613133600-34a5b432 900
900 http://packages.magma.etagecom.io stretch-1.4.0/main amd64 Packages
1.4.0-1613074570-89825737 900
900 http://packages.magma.etagecom.io stretch-1.4.0/main amd64 Packages
1.4.0-1612835484-0b35bbf7 900
900 http://packages.magma.etagecom.io stretch-1.4.0/main amd64 Packages
1.4.0-1612468824-8332a017 900
900 http://packages.magma.etagecom.io stretch-1.4.0/main amd64 Packages
1.4.0-1612396096-ba70baa5 900
900 http://packages.magma.etagecom.io stretch-1.4.0/main amd64 Packages
1.4.0-1612277605-e22e0fc7 900
900 http://packages.magma.etagecom.io stretch-1.4.0/main amd64 Packages
1.4.0-1612206795-b5343336 900
900 http://packages.magma.etagecom.io stretch-1.4.0/main amd64 Packages
magma@132_vagw1:~$ sudo cat /etc/apt/sources.list.d/packages_magma_etagecom_io.list
deb http://packages.magma.etagecom.io stretch-1.4.0 main
magma@132_vagw1:~$ sudo nano /etc/apt/sources.list.d/packages_magma_etagecom_io.list
magma@132_vagw1:~$ sudo cat /etc/apt/sources.list.d/packages_magma_etagecom_io.list
deb http://packages.magma.etagecom.io stretch-1.3.2 main
magma@132_vagw1:~$ sudo apt-get update
Get:1 http://packages.magma.etagecom.io stretch-1.3.2 InRelease [3,546 B]
Ign:2 http://ftp.us.debian.org/debian stretch InRelease
Hit:3 http://security.debian.org/debian-security stretch/updates InRelease
Hit:4 http://ftp.us.debian.org/debian stretch-updates InRelease
Get:5 http://packages.magma.etagecom.io stretch-1.3.2/main amd64 Packages [39.4 kB]
Hit:6 http://ftp.us.debian.org/debian stretch Release
Fetched 42.9 kB in 0s (44.4 kB/s)
Reading package lists... Done
magma@132_vagw1:~$ sudo apt policy magma
magma:
Installed: 1.4.0-1615912803-6bca6402
Candidate: 1.4.0-1615912803-6bca6402
Version table:
*** 1.4.0-1615912803-6bca6402 100
100 /var/lib/dpkg/status
1.3.2-1608233049-8b3817ec 900
900 http://packages.magma.etagecom.io stretch-1.3.2/main amd64 Packages
1.3.2-1608155519-81d06cd5 900
900 http://packages.magma.etagecom.io stretch-1.3.2/main amd64 Packages
1.3.2-1607556054-95c7ec03 900
900 http://packages.magma.etagecom.io stretch-1.3.2/main amd64 Packages
1.3.2-1607409013-7695653e 900
900 http://packages.magma.etagecom.io stretch-1.3.2/main amd64 Packages
1.3.2-1607364457-b27c8a15 900
900 http://packages.magma.etagecom.io stretch-1.3.2/main amd64 Packages
1.3.2-1607014227-1462d960 900
900 http://packages.magma.etagecom.io stretch-1.3.2/main amd64 Packages
magma@132_vagw1:~$ sudo apt-get install magma
Reading package lists... Done
Building dependency tree
Reading state information... Done
magma is already the newest version (1.4.0-1615912803-6bca6402).
The following packages were automatically installed and are no longer required:
python3-cffi-backend python3-pyasn1 python3-pycrypto
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
magma@132_vagw1:~$ sudo apt-get install magma=1.3.2-1608233049-8b3817ec
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
getenvoy-envoy liblua5.2-0 libmaxminddb0 libmnl-dev libnl-3-200 libnl-genl-3-200 libsbc1 libsmi2ldbl libspandsp2 libssh-gcrypt-4 libtins-dev libtins3.4 libwireshark-data
libwireshark11 libwiretap8 libwscodecs2 libwsutil9 python3-cffi-backend python3-pyasn1 python3-pycryptodome python3-pyroute2 python3-python-redis-lock tshark wireshark-common
Use 'sudo apt autoremove' to remove them.
The following packages will be DOWNGRADED:
magma
0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
Need to get 41.1 MB of archives.
After this operation, 56.2 MB disk space will be freed.
Do you want to continue? [Y/n] Y
Get:1 http://packages.magma.etagecom.io stretch-1.3.2/main amd64 magma amd64 1.3.2-1608233049-8b3817ec [41.1 MB]
Fetched 41.1 MB in 1s (26.7 MB/s)
dpkg: warning: downgrading magma from 1.4.0-1615912803-6bca6402 to 1.3.2-1608233049-8b3817ec
(Reading database ... 121973 files and directories currently installed.)
Preparing to unpack .../magma_1.3.2-1608233049-8b3817ec_amd64.deb ...
Unpacking magma (1.3.2-1608233049-8b3817ec) over (1.4.0-1615912803-6bca6402) ...
dpkg: warning: unable to delete old directory '/usr/local/lib/python3.5/dist-packages/magma/pipelined/ng_manager': Directory not empty
Setting up magma (1.3.2-1608233049-8b3817ec) ...
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/logfiles.txt ...
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/monitord.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/magma/templates/spgw.conf.template ...
Installing new version of config file /etc/network/interfaces.d/gtp ...
Installing new version of config file /etc/systemd/system/magma@mme.service ...
Installing new version of config file /etc/systemd/system/magma@mobilityd.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
Processing triggers for rsyslog (8.24.0-1) ...
magma@132_vagw1:~$
magma@132_vagw1:~$
magma@132_vagw1:~$ sudo dpkg -l | grep magma
ii magma 1.3.2-1608233049-8b3817ec amd64 Magma Access Gateway
ii magma-cpp-redis 4.3.1.2-2 amd64 Redis C++ client library
ii magma-libfluid 0.1.0.5-1 amd64 Libfluid Openflow Controller
ii magma-sctpd 1.4.0-1615912803-6bca6402 amd64 Magma SCTPD
magma@132_vagw1:~$ sudo apt policy magma
magma:
Installed: 1.3.2-1608233049-8b3817ec
Candidate: 1.3.2-1608233049-8b3817ec
Version table:
*** 1.3.2-1608233049-8b3817ec 900
900 http://packages.magma.etagecom.io stretch-1.3.2/main amd64 Packages
100 /var/lib/dpkg/status
1.3.2-1608155519-81d06cd5 900
900 http://packages.magma.etagecom.io stretch-1.3.2/main amd64 Packages
1.3.2-1607556054-95c7ec03 900
900 http://packages.magma.etagecom.io stretch-1.3.2/main amd64 Packages
1.3.2-1607409013-7695653e 900
900 http://packages.magma.etagecom.io stretch-1.3.2/main amd64 Packages
1.3.2-1607364457-b27c8a15 900
900 http://packages.magma.etagecom.io stretch-1.3.2/main amd64 Packages
1.3.2-1607014227-1462d960 900
900 http://packages.magma.etagecom.io stretch-1.3.2/main amd64 Packages
magma@132_vagw1:~$ sudo apt-get install magma-sctpd=1.3.2-1608233049-8b3817ec
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
getenvoy-envoy liblua5.2-0 libmaxminddb0 libmnl-dev libnl-3-200 libnl-genl-3-200 libsbc1 libsmi2ldbl libspandsp2 libssh-gcrypt-4 libtins-dev libtins3.4 libwireshark-data
libwireshark11 libwiretap8 libwscodecs2 libwsutil9 python3-cffi-backend python3-pyasn1 python3-pycryptodome python3-pyroute2 python3-python-redis-lock tshark wireshark-common
Use 'sudo apt autoremove' to remove them.
The following packages will be DOWNGRADED:
magma-sctpd
0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
Need to get 1,026 kB of archives.
After this operation, 32.8 kB disk space will be freed.
Do you want to continue? [Y/n] Y
Get:1 http://packages.magma.etagecom.io stretch-1.3.2/main amd64 magma-sctpd amd64 1.3.2-1608233049-8b3817ec [1,026 kB]
Fetched 1,026 kB in 0s (10.2 MB/s)
dpkg: warning: downgrading magma-sctpd from 1.4.0-1615912803-6bca6402 to 1.3.2-1608233049-8b3817ec
(Reading database ... 121949 files and directories currently installed.)
Preparing to unpack .../magma-sctpd_1.3.2-1608233049-8b3817ec_amd64.deb ...
Unpacking magma-sctpd (1.3.2-1608233049-8b3817ec) over (1.4.0-1615912803-6bca6402) ...
Setting up magma-sctpd (1.3.2-1608233049-8b3817ec) ...
magma@132_vagw1:~$ sudo dpkg -l | grep magma
ii magma 1.3.2-1608233049-8b3817ec amd64 Magma Access Gateway
ii magma-cpp-redis 4.3.1.2-2 amd64 Redis C++ client library
ii magma-libfluid 0.1.0.5-1 amd64 Libfluid Openflow Controller
ii magma-sctpd 1.3.2-1608233049-8b3817ec amd64 Magma SCTPD
magma@132_vagw1:~$ sudo apt policy magma
magma:
Installed: 1.3.2-1608233049-8b3817ec
Candidate: 1.3.2-1608233049-8b3817ec
Version table:
*** 1.3.2-1608233049-8b3817ec 900
900 http://packages.magma.etagecom.io stretch-1.3.2/main amd64 Packages
100 /var/lib/dpkg/status
1.3.2-1608155519-81d06cd5 900
900 http://packages.magma.etagecom.io stretch-1.3.2/main amd64 Packages
1.3.2-1607556054-95c7ec03 900
900 http://packages.magma.etagecom.io stretch-1.3.2/main amd64 Packages
1.3.2-1607409013-7695653e 900
900 http://packages.magma.etagecom.io stretch-1.3.2/main amd64 Packages
1.3.2-1607364457-b27c8a15 900
900 http://packages.magma.etagecom.io stretch-1.3.2/main amd64 Packages
1.3.2-1607014227-1462d960 900
900 http://packages.magma.etagecom.io stretch-1.3.2/main amd64 Packages
magma@132_vagw1:~$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment