更改Ubuntu 18.04.5上的gcc编译器版本

更改Ubuntu 18.04.5上的gcc编译器版本,ubuntu,gcc,compilation,ubuntu-18.04,Ubuntu,Gcc,Compilation,Ubuntu 18.04,我正在尝试更改mi gcc编译器版本。我安装了gcc 9,但当我使用命令tru查看我的gcc版本时 '''gcc --version''' 我总是这样想: gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0 Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warran

我正在尝试更改mi gcc编译器版本。我安装了gcc 9,但当我使用命令tru查看我的gcc版本时

'''gcc --version'''
我总是这样想:

gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0 Copyright (C) 2017 Free
Software Foundation, Inc. This is free software; see the source for
copying conditions.  There is NO warranty; not even for
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
如何更改gcc编译器版本