При попытке установить R на гостеприимной Ubuntu 16.04, я застреваю потому что r-base-core
не может быть настроен. Я использую общее руководство. По-видимому, сценарий постустановки перестал работать, когда ucf, как предполагается, делает что-то. При добавлении -x
аргумент сценарию постустановки:
Setting up r-base-core (3.3.2-1xenial0) ...
+ dpkg-maintscript-helper mv_conffile /etc/bash_completion.d/R /usr/share/bash-completion/completions/R -- configure
+ mktemp
+ tmpRenviron=/tmp/tmp.MANJybxXxQ
+ chmod 0644 /tmp/tmp.MANJybxXxQ
+ cat /usr/lib/R/etc/Renviron.ucf
+ paperconf
+ papersize=a4
+ perl -p -i -e s{^R_PAPERSIZE_USER=\$\{R_PAPERSIZE\}}
{R_PAPERSIZE_USER=\$\{R_PAPERSIZE-'a4'\}}x /tmp/tmp.MANJybxXxQ
+ ucf /tmp/tmp.MANJybxXxQ /etc/R/Renviron
dpkg: error processing package r-base-core (--configure):
subprocess installed post-installation script returned error exit status 10
На основе других сообщений я нашел онлайн относительно ucf проблем в сценариях постустановки, я добавил уровень отладки 3 к ucf-строке в posinstallation сценарии. Это - то, на что консоль похожа теперь:
+ dpkg-maintscript-helper mv_conffile /etc/bash_completion.d/R /usr/share/bash-completion/completions/R -- configure
+ mktemp
+ tmpRenviron=/tmp/tmp.LsP3FSBIRI
+ chmod 0644 /tmp/tmp.LsP3FSBIRI
+ cat /usr/lib/R/etc/Renviron.ucf
+ paperconf
+ papersize=a4
+ perl -p -i -e s{^R_PAPERSIZE_USER=\$\{R_PAPERSIZE\}}
{R_PAPERSIZE_USER=\$\{R_PAPERSIZE-'a4'\}}x /tmp/tmp.LsP3FSBIRI
+ ucf --debug=3 /tmp/tmp.LsP3FSBIRI /etc/R/Renviron
The new start file is `/tmp/tmp.LsP3FSBIRI\'
The destination is `/etc/R/Renviron\' (`\/etc\/R\/Renviron\')
The history is kept under \'/tmp\'
The file may be cached at \'/var/lib/ucf/cache/:etc:R:Renviron\'
The destination file does not exist.
The old md5sum does not exist.
The new file exists, and has md5sum:
7c899e0d9d42df33d5dfd303ef43c46b /tmp/tmp.LsP3FSBIRI
Historical md5sums are not available
The new start file is `/tmp/tmp.LsP3FSBIRI\'
The destination is `/etc/R/Renviron\' (`\/etc\/R\/Renviron\')
The history is kept under \'/tmp\'
The file may be cached at \'/var/lib/ucf/cache/:etc:R:Renviron\'
dpkg: error processing package r-base-core (--configure):
subprocess installed post-installation script returned error exit status 20
Я не знаю, куда пойти отсюда.
Tl; доктор: у Меня, кажется, есть подобная проблема, как обсуждено здесь, за исключением того, что решение не работает. Команда
sudo apt-get --reinstall install r-base-core
возвраты
E: Internal Error, No file name for r-base-core:amd64
и команда
sudo sed -i 's/\tucf/\t#ucf/' /var/lib/dpkg/info/r-base-core.postinst
sudo apt-get -f install
результаты, как обычно, в
subprocess installed post-installation script returned error exit status 10