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:
Scroll down to "Search package directories"
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,所以安装之就可以了。
还是差的太多,毕竟以前没怎么写过程序,平时事情很杂乱,