NoteDeep
Reading state information... Done
E: Unable to locate package libcxsparse3.1.2
E: Couldn't find any package by glob 'libcxsparse3.1.2'
E: Couldn't find any package by regex 'libcxsparse3.1.2'

一开摸不着头脑,查了几遍确定没有输入错误,然后就去“科学搜索”,发现了下面的帖子:
https://askubuntu.com/questions/378558/unable-to-locate-package-while-trying-to-install-packages-with-apt
按照里面的方法一步一步去找:
First, check if the package actually exists:
  1. Go to packages.ubuntu.com with a web browser.
  2. Scroll down to "Search package directories"
  3. Enter the package which you're trying to install into the "Keyword" field. Enable "Only show exact matches:" Change the "Distribution" to which version of Ubuntu you're using.
之后搞明白,其实安装包是存在的,不过libcxsparse3.1.2对应的ubuntu14.04 LTS(trusty),而我用的是ubuntu16.04 LTS(xenial),对应的版本是libcxsparse3.1.4,所以安装之就可以了。
接触快一年ubuntu了,才明白查看安装包要去 packages.ubuntu.com ,惭愧。
还是差的太多,毕竟以前没怎么写过程序,平时事情很杂乱,






评论列表