Newer software is being compiled against CUDA 10.2. But some software I need to use requires CUDA 10.1 specifically. Well, my Ubuntu 18.04 box had CUDA 9.1. Lets walk through how to get your system upgraded from CUDA 9.1 to 10.1.
Source: LXer – Update CUDA from 9.1 to 10.1 on Ubuntu 18.04