首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装python-numpy时出错

安装python-numpy时出错
EN

Ask Ubuntu用户
提问于 2015-09-11 11:31:31
回答 1查看 609关注 0票数 1

在一个带有Ubuntu15.04(刚创建的)的虚拟Linux盒上,我即将安装python,但是我得到了一些错误:

代码语言:javascript
复制
>sudo apt-get install python-numpy 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python-numpy is already the newest version.
The following packages were automatically installed and are no longer required:
  fonts-texgyre libamd2.3.1 libdsdp-5.8gf libfftw3-double3 libglpk36
  libgsl0ldbl preview-latex-style python-cvxopt python-joblib python-patsy
  python-simplejson tex-gyre
Use 'apt-get autoremove' to remove them.
The following packages will be upgraded:
  texlive-fonts-extra-doc
1 upgraded, 0 newly installed, 0 to remove and 233 not upgraded.
1 not fully installed or removed.
Need to get 0 B/60.2 MB of archives.
After this operation, 76.1 MB of additional disk space will be used.
(Reading database ... 229105 files and directories currently installed.)
Preparing to unpack .../texlive-fonts-extra-doc_2014.20141024-1_all.deb ...
E: Sub-process /usr/bin/dpkg returned an error code (2)

知道怎么纠正这个错误吗?是否存在问题,因为它说numpy是安装的?

除此错误消息外,还需要运行以下命令

代码语言:javascript
复制
sudo dpkg --configure -a

每次我试着安装一些东西!怎么回事.?

其他信息:

代码语言:javascript
复制
> dpkg -l | grep texlive
ii  texlive-base                                         2014.20141024-2ubuntu1                     all          TeX Live: Essential programs and files
ii  texlive-binaries                                     2014.20140926.35254-6build1                amd64        Binaries for TeX Live
ii  texlive-extra-utils                                  2014.20141024-1                            all          TeX Live: TeX auxiliary programs
ii  texlive-font-utils                                   2014.20141024-1                            all          TeX Live: Graphics and font utilities
ii  texlive-fonts-extra                                  2014.20141024-1                            all          TeX Live: Additional fonts
iHR texlive-fonts-extra-doc                              2014.20141024-1                            all          (no description available)
ii  texlive-generic-recommended                          2014.20141024-2ubuntu1                     all          TeX Live: Generic recommended packages
ii  texlive-latex-base                                   2014.20141024-2ubuntu1                     all          TeX Live: LaTeX fundamental packages
ii  texlive-latex-recommended                            2014.20141024-2ubuntu1                     all          TeX Live: LaTeX recommended packages
ii  texlive-pictures                                     2014.20141024-2ubuntu1                     all          TeX Live: Graphics, pictures, diagrams
ii  texlive-pstricks                                     2014.20141024-1         

               all          TeX Live: PSTricks

以及:

代码语言:javascript
复制
>apt-cache policy texlive-fonts-extra-doc
texlive-fonts-extra-doc:
  Installed: 2014.20141024-1
  Candidate: 2014.20141024-1
  Version table:
     2014.20141024-1 0
        500 http://ch.archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages
 *** 2014.20141024-1 0
        100 /var/lib/dpkg/status
EN

回答 1

Ask Ubuntu用户

发布于 2015-09-11 11:37:29

您的问题与python-numpy无关。原因是以前安装了texlive

更改下载服务器

代码语言:javascript
复制
sudo sed -i 's://ch\.://:g' /etc/apt/sources.list
sudo apt-get update

重新安装软件包

代码语言:javascript
复制
sudo apt-get clean
sudo apt-get install -f
sudo apt-get install --reinstall texlive-fonts-extra-doc

正如您所说的,您的虚拟机只有500 MB内存。

免费-m总计使用免费共享缓冲区缓存内存: 489 469 19 8 2 70 -/+缓冲区/缓存: 396 92交换:0 0 0

给你的系统更多的RAM =)

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/672886

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档