На виртуальном поле Linux с Ubuntu 15.04 (недавно созданный) я собираюсь установить python-numpy, но я получаю некоторую ошибку:
>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 установлен?
В дополнение к этому сообщению об ошибке я требуюсь выполнить команду
sudo dpkg --configure -a
каждый раз я пытаюсь установить что-то! Что продолжается...?
Дополнительная информация:
> 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
и:
>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
Ваша проблема не имеет никакого отношения python-numpy
. Причиной является предыдущая установка texlive
.
Изменение Ваш сервер загрузки
sudo sed -i 's://ch\.://:g' /etc/apt/sources.list
sudo apt-get update
Переустанавливает пакет
sudo apt-get clean
sudo apt-get install -f
sudo apt-get install --reinstall texlive-fonts-extra-doc
И как Вы сказали, у Вас есть только 500 МБ RAM для Вашей виртуальной машины
$ free -m total used free shared buffers cached Mem: 489 469 19 8 2 70 -/+ buffers/cache: 396 92 Swap: 0 0 0
, дают Вашей системе больше RAM =)