LogoLogo
Back to HaasOnline.comSwitch to Developer API
3.x
3.x
  • Welcome
  • Getting Started
    • What is Haas Trade Server?
    • System Requirements
    • Installation
      • Windows
      • Linux
        • Downgrading Mono
      • MacOS
    • Configuration
      • License Key
        • Upgrading Your License
      • Price Drivers & Accounts
      • Exchanges
        • Binance
        • Binance USDT Futures
        • Binance COIN Futures
        • Binance US
        • Bitfinex
        • BitMEX
        • Bitpanda Pro
        • Bitstamp
        • Bittrex
        • Bybit
        • (Unsupported) C-Cex
        • Cex.IO
        • (Unsupported) CobinHood
        • Coinbase PRO
        • Deribit
        • (Unsupported) FTX
        • Gemini
        • HitBTC
        • Huobi
        • Ionomy
        • Kraken
        • Kraken Futures
        • KuCoin
        • (Unsupported) NovaExchange
        • OKCoin
        • OKEX
        • OKEX-Futures
        • OKEX-Swap
        • Poloniex
        • Scripted Driver
    • Updating HTS
      • Stable Update
      • Beta Update
    • Apps
      • Discord
      • Telegram
    • Security
      • Two-factor Authentication (2FA)
    • Troubleshooting
      • Frequently Asked Questions
      • Two-factor Authentication (2FA)
      • Debugging & Logs
      • Exchange API
      • Invalid License
      • Lost Login Credentials
      • Orders Being Rejected
      • Unresponsive HTS UI
      • Using Safe Mode
    • Tips & Tricks
      • Keyboard Shortcuts
      • Migrating Your HTS
      • Never Logout
      • Reactivate Bots on Startup
      • Used Symbols
  • Trade Bots
    • Getting Started
    • General Settings
    • Trade Settings
    • Bot Charts
    • Indicators
      • Candlestick Patterns
        • Advance Block
        • Belt Hold
          • Belt Hold Bearish
          • Belt Hold Bullish
        • Break Away
          • Breakaway Bearish
          • Breakaway Bullish
        • Closing Marubozu
        • Concealing Baby Swallow
        • Counter Attack
          • Counter Attack Bullish
          • Counter Attack Bearish
        • Doji
        • Doji Star
        • Dragon Fly Doji
        • Engulfing Bearish
        • Engulfing Bullish
        • Gap Side-by-Side White Lines
        • Gravestone Doji
        • Hammer
        • Hanging Man
        • Harami
          • Harami Bearish
          • Harami Bullish
        • Harami Cross
          • Harami Cross Bearish
          • Harami Cross Bullish
        • High Wave
        • Hikkake
          • Hikkake Bearish
          • Hikkake Bullish
        • Homing Pigeon
        • Identical Three Crows
        • In Neck
        • Inverted Hammer
        • Kicking Bearish
        • Kicking Bullish
        • Ladder Bottom
        • Long Legged Doji
        • Long Line
        • Matching Low
        • Marubozu
          • Marubozu Bearish
          • Marubozu Bullish
        • On Neck
        • Rickshaw Man
        • Rise Fall Three Methods
        • Separating Lines
        • Shooting Star
        • Short Line
        • Simple Double Down Candle
        • Simple Double Up Candle
        • Simple Down Candle
        • Simple Up Candle
        • Spinning Top
        • Stalled Pattern
        • Stick Sandwich Down
        • Stick Sandwich Up
        • Tasuki Gap
        • Three Black Crows
        • Three Inside Down
        • Three Inside Up
        • Three Line Strike
          • Three Line Strike Bearish
          • Three Line Strike Bullish
        • Three Outside Down
        • Three Outside Up
        • Three Stars in North
        • Three Stars in South
        • Three White Soldiers
        • Tristar
        • Thrusting
        • Two Crows
      • Aroon
      • Aroon Oscillator
      • Awesome Oscillator
      • Balance of Power (BOP)
      • Blind Indicator
      • Bollinger Bands
      • Bollinger Bands %B
      • Bollinger Bands %W
      • Commodity Channel Index (CCI)
      • Chande Momentum Oscillator (CMO)
      • Connors RSI (CRSI)
      • Coppock Curve
      • Detrended Price Oscillator (DPO)
      • Donchian Channels
      • Double Exponential Moving Average (DEMA)
      • Dynamic Buy/Sell
      • Elliot Wave Prediction
      • Exponential Moving Average (EMA)
      • Fast RSI
      • Fibonacci Retracements
      • Fixed Buy/Sell
      • Fractals
      • Ichi Clouds
      • Kaufmans Adaptive Moving Average (KAMA)
      • Keltner Channels
      • Momentum
      • Money Flow Index
      • Moving Average Convergence Divergence (MACD)
      • Parabolic SAR
      • Percentage Price Oscillator
      • Rate Of Change (ROC)
      • Rate Of Change Percent (Alternative) (ROC)
      • Regression Slope Cross
      • Relative Strength Index (RSI)
      • Script Indicator (C#)
      • Simple Moving Average (SMA)
      • Slow RSI
      • Small Fractals
      • Stochastic Oscillator
      • StochRSI
      • Stochastic^2
      • Timed Blind Indicator
      • Tom Demark Sequential (TD)
      • Triangular Moving Average (TRIMA)
      • Triple Exponential Average (TRIX)
      • Triple Exponential Moving Average (TEMA)
      • Ultimate Oscillator
      • Weighted Moving Average (WMA)
      • Williams %R
    • Safeties
      • Stop Loss
        • Stop Loss
        • Stop Loss (Fixed)
        • Stop Loss (Dynamic)
        • Stop Loss (Trailing)
        • Close position below % loss
      • Take Profit
        • Take Profit
        • Take Profit (Fixed)
        • Take Profit (Dynamic)
        • Close position above x% profit
      • Roof-In
        • Roof-In
        • Roof-In (Fixed)
        • Roof-In (Dynamic)
        • Roof-In (Trailing)
      • Disable Bot
        • Deactivate bot after buy
        • Deactivate bot after sell
        • Deactivate after X Minutes
        • Deactivate after X Idle Trades
        • Deactivate After X Trades
      • Others
        • Close Before Settlement
        • Force Bot to stay Bought/Long
        • Force Bot to Stay Sold/Short
        • Price Dump
        • Price Pump
        • Reset last buy price
        • Reset last sell price
        • Trade On Trend Lines
      • Script
        • Script Safety (C#)
    • Insurances
      • Fee
        • Overcome Double The Fee Costs
        • Overcome Fee Costs
      • Script
        • Script Insurance (C#)
      • Others
        • Wait after order
      • Price
        • Never Buy Higher
        • Never Sell Lower
        • Absolute Price Change
        • Percentage Price Change
      • Profit/Loss
        • Be Profitable In X Trades
        • Disable on Losses
        • Stay Profitable
      • Trend
        • Trade Only Sideways
        • Trade Only Trending
  • Custom Bots
    • Accumulation Bot
    • Advanced Index Bot
    • C# Script Bot
    • Crypto Index Bot
    • Email Bot
      • Email provider guide
      • Tradingview alert guide
      • Troubleshooting
    • Flash Crash Bot
      • Setup guide
      • Profit calculation
      • Price spread examples
      • Full screen mode
      • Follow the trend
      • Deactivation safety
      • Order management
      • Amount calculator
    • Intelli Alice Bot
    • Inter-Exchange Arbitrage Bot
    • MadHatter Bot
      • Setup Guide
      • Full screen mode
    • Market Making Bot
    • Order Bot
      • Full screen mode
      • Template Manager
    • Ping Pong Bot
    • Scalper Bot
      • Replicating the Scalper Bot in a Trade Bot
    • Trend Lines Bot
    • Zone Recovery Bot
  • Bot Tools
    • Backtesting & Paper Trading
    • Bot Dashboard
    • Bot List
    • Bot Performance Analyzer
    • Haas Labs
  • Bot Extensions
    • Deactivate After Order
    • Deactivate On Safety
    • Flash Crash Bot Manager
    • Manage Bots On Email Alarm
    • Manage Bots On Price Alarm
    • Manage Bots On Indicator
    • Order Persistence
    • Panic Move
    • Trailing Stop
  • Asset Management
    • Portfolio
      • Settings
      • History Synchronisation
      • Dashboard
      • Asset Information
      • Asset Location
      • Asset Trends
      • Trade Profit
      • Trade Volume
      • Trade Frequency
      • Balance Per Day
      • Trade History
      • Deposit & Withdrawal History
      • Position History
    • External Wallet
  • Other Features
    • Advanced Orders
      • Stop Loss
      • Take Profit
      • Trailing Stop
    • Dashboard
      • Alarms
      • Bots Related
      • Bulk Widgets
      • Account Related
      • Calculators
      • Charts
      • Clocks
      • News & Media
      • Order book & Trades
      • Portfolio
      • Tickers
    • Indicator Scanner
    • Manual Trading
    • Marketview
    • Market Compare
    • Order Templates
    • Technical Analysis
  • Changelog
    • Stable Release
    • Beta Release
  • Other Resources
    • YouTube
    • Guides & Tutorials
    • Questions & Answers
    • Community Projects
  • Need Help?
    • Ask on Discord
    • Submit support ticket
Powered by GitBook
On this page
  • Verify Your System
  • Shutting Down the HTS platform
  • Steps to Downgrade Mono
  • Making sure that Mono is really gone
  • Reinstall an Older Mono Version

Was this helpful?

  1. Getting Started
  2. Installation
  3. Linux

Downgrading Mono

PreviousLinuxNextMacOS

Last updated 2 years ago

Was this helpful?

Downgrading Mono is not usually recommended but things sometimes go wrong and we understand that. Here's a simple guide (we hope!) to help you. If you need help, please do not hesitate to contact us through a or ask our other users on .

Verify Your System

Check what version of Ubuntu you are running by:

hostnamectl | grep Ubuntu

Check the CPU architecture of your server:

The commands you will copy in Reinstall an Older Mono Version will be different depending on the CPU architecture that you are running.

cat /proc/cpuinfo | grep vendor_id

Shutting Down the HTS platform

You can use either of these commands:

sudo killall mono

or

sudo kill $(ps ax | grep mono | fgrep -v grep | awk '{ print $1 }')

Steps to Downgrade Mono

Steps shown here are exclusively for Ubuntu and commands are to be run as root so that everything is properly deleted.

Remove the existing Mono installation (run these commands one after the other):

This command will remove all installed types of Mono even if you didn't install most of them in the first place. We just want to be sure to catch any and all of them rather than having to deal with some headaches down the line.

sudo apt remove mono-complete mono-vbnc ca-certificates-mono mono-runtime

Press Y when prompted.

Press the Enter key to confirm.

sudo apt autoremove

Press Y when prompted.

Press the Enter key to confirm.

Check /etc/apt/sources.list.d/ for any references to Mono. If they exist, remove them:

cd /etc/apt/sources.list.d/
sudo nano ./mono-official-stable.list

Delete ALL of the text that is shown in this file.

Once done, press Ctrl + X at the same time to save.

Press Y when prompted.

Press the Enter key to confirm.

Making sure that Mono is really gone

While not everyone needs to do this, it is best to run the first command once to be sure.

whereis mono

If your result is as shown, you'll need to follow the other steps in this section.

If the result is empty, move on to the Reinstall an Older Mono Version section.

Continuing with our removal of the straggling bits of Mono, we need to run this command:

sudo apt remove --purge --auto-remove mono-runtime

Press Y when prompted.

Press the Enter key to confirm.

This particular command will remove any other stragglers that might still hang around in our system.

dpkg --list | grep "mono" | cut -d " " -f 3 | xargs dpkg --purge

In order to make sure that the remaining Mono folders are removed, run this command.

sudo rm -rf /usr/lib/mono /etc/mono

Once that is done, run this command to make sure that Mono has 100% been purged from our system.

whereis mono

Reinstall an Older Mono Version

First, we will need to set a new line in our repository list file.

sudo nano /etc/apt/sources.list.d/mono-official-stable.list

In this file, we will paste only ONE of the three lines presented below. Please copy the one that matches the version of Ubuntu that you are running.

For users who are running on Intel based machines:

Ubuntu version 16:

deb https://download.mono-project.com/repo/ubuntu xenial/snapshots/5.14.0.177 main

Ubuntu version 18:

deb https://download.mono-project.com/repo/ubuntu bionic/snapshots/5.14.0.177 main

Ubuntu version 20 (lowest version of Mono you can downgrade to is 6.8):

deb https://download.mono-project.com/repo/ubuntu focal/snapshots/6.8 main

For users who are running on AMD based machines:

Ubuntu version 16:

deb [arch=amd64] https://download.mono-project.com/repo/ubuntu xenial/snapshots/5.14.0.177 main

Ubuntu version 18:

deb [arch=amd64] https://download.mono-project.com/repo/ubuntu bionic/snapshots/5.14.0.177 main

Ubuntu version 20 (lowest version of Mono you can downgrade to is 6.8):

deb [arch=amd64] https://download.mono-project.com/repo/ubuntu focal/snapshots/6.8 main

An example of a successful paste for Ubuntu version 18:

Press Ctrl + X at the same time to save.

Press Y when prompted.

Press the Enter key to confirm.

It's now time for what we've been waiting for, installing the older version of Mono! Run the below command in your terminal.

sudo apt install mono-complete mono-vbnc ca-certificates

Press Y when prompted.

Press the Enter key to confirm.

It is likely that the Mono version installed would be an older version than what we intended. To confirm this, run the following command.

mono -V

Now that we've confirmed that it's running an older version, we will need run the following two commands.

sudo apt update
sudo apt upgrade

Press Y when prompted.

Press the Enter key to confirm.

Run the following command one final time to confirm.

mono -V

Congratulations! You've downgraded your Mono version successfully.

Time to start up your HTS!

ticket
Discord
Expected outcome of running the command.
Expected outcome of running the command.
Expected outcome of running the command.
Expected result of the command running successfully.
Expected outcome of running the command.
Expected result of running the command successfully.
Expected result of executing the steps.
Parts of Mono is still installed and we need to remove them.
Expected outcome of running the command.
Expected result of running the command successfully.
Expected result of running the command successfully.
Expected result of running the two commands successfully.
Expected outcome of running the command.