Hello: I have a new install of Ubuntu 12.04. I have tried to install R via source, apt-get, and the deb packages from a cran mirror. Each of these had issues. I followed the secure apt key install. The apt-get and deb installs each have the same error. So, let's ignore the source install for now. This is the error:>> sudo dpkg -i r-base-core_2.15.1-1precise2_i386.deb(Reading database ... 244318 files and directories currently installed.) Preparing to replace r-base-core 2.15.1-1precise2 (using r-base-core_2.15.1-1precise2_i386.deb) ... Unpacking replacement r-base-core ... dpkg: dependency problems prevent configuration of r-base-core: r-base-core depends on tk8.5 (>= 8.5.0); however: Package tk8.5 is not installed. dpkg: error processing r-base-core (--install): dependency problems - leaving unconfigured ... r-base-core Or, with apt-get>> sudo apt-get install r-base-coreReading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: r-base-core : Depends: tk8.5 (>= 8.5.0) but it is not installable Recommends: r-recommended but it is not going to be installed Recommends: r-base-dev but it is not going to be installed Recommends: r-doc-html but it is not going to be installed E: Unable to correct problems, you have held broken packages. Obviously the hurdle here is tk8.5. I installed ActiveTcl8.5.12.0.296033-linux-ix86-threaded.tar.gz from activestate.com/activetcl/downloads, which tcl.tk suggested for obtaining binaries. This however did not make R any happier. Any suggestions would be greatly appreciated. Thanks, kc [[alternative HTML version deleted]]
Did you try first installing tk from the Ubuntu archive? Cheers, Simon. On 11/09/12 13:56, Keith Chewning wrote:> Hello: > > I have a new install of Ubuntu 12.04. I have tried to install R via source, > apt-get, and the deb packages from a cran mirror. Each of these had issues. > I followed the secure apt key install. The apt-get and deb installs each > have the same error. So, let's ignore the source install for now. This is the error: > >>> sudo dpkg -i r-base-core_2.15.1-1precise2_i386.deb > (Reading database ... 244318 files and directories currently installed.) > Preparing to replace r-base-core 2.15.1-1precise2 (using r-base-core_2.15.1-1precise2_i386.deb) ... > Unpacking replacement r-base-core ... > dpkg: dependency problems prevent configuration of r-base-core: > r-base-core depends on tk8.5 (>= 8.5.0); however: > Package tk8.5 is not installed. > dpkg: error processing r-base-core (--install): > dependency problems - leaving unconfigured > ... > r-base-core > > Or, with apt-get > >>> sudo apt-get install r-base-core > Reading package lists... Done > Building dependency tree > Reading state information... Done > Some packages could not be installed. This may mean that you have > requested an impossible situation or if you are using the unstable > distribution that some required packages have not yet been created > or been moved out of Incoming. > The following information may help to resolve the situation: > > The following packages have unmet dependencies: > r-base-core : Depends: tk8.5 (>= 8.5.0) but it is not installable > Recommends: r-recommended but it is not going to be installed > Recommends: r-base-dev but it is not going to be installed > Recommends: r-doc-html but it is not going to be installed > E: Unable to correct problems, you have held broken packages. > > Obviously the hurdle here is tk8.5. I installed > ActiveTcl8.5.12.0.296033-linux-ix86-threaded.tar.gz from > activestate.com/activetcl/downloads, which tcl.tk > suggested for obtaining binaries. This however did not make R > any happier. Any suggestions would be greatly appreciated. > > Thanks, > kc > > > > > > [[alternative HTML version deleted]] >-- Simon Blomberg, BSc (Hons), PhD, MAppStat, AStat. Lecturer and Consultant Statistician School of Biological Sciences The University of Queensland St. Lucia Queensland 4072 Australia T: +61 7 3365 2506 email: S.Blomberg1_at_uq.edu.au uq.edu.au/~uqsblomb Policies: 1. I will NOT analyse your data for you. 2. Your deadline is your problem. Statistics is the grammar of science - Karl Pearson.
Hello Simon: Thank you for your prompt reply. I tried that, but I do not know what to install. e.g., if I do % apt-cache search tk8 bottlerocket - Utility to control X10 Firecracker devices for home automation libpurple0 - multi-protocol instant messaging library which does not seem likely. If I search for just tk I get hundreds of packages (tk8.5 returns nothing). Using a package manager I do not see any package in 12.04 which looks like a tcl/tk library. I do, however, see many ancillary packages, like tix-dev. (I tried a build-dep on this package, but that did not work either) Do you know if I need an entry in my sources.list to point to a new repository for this package? Thanks, kc [[alternative HTML version deleted]]
On 10 September 2012 at 20:56, Keith Chewning wrote: | Hello: | | I have a new install of Ubuntu 12.04. I have tried to install R via source, | apt-get, and the deb packages from a cran mirror. Each of these had issues. | I followed the secure apt key install. The apt-get and deb installs each | have the same error. So, let's ignore the source install for now. This is the error: | | >> sudo dpkg -i r-base-core_2.15.1-1precise2_i386.deb | (Reading database ... 244318 files and directories currently installed.) | Preparing to replace r-base-core 2.15.1-1precise2 (using r-base-core_2.15.1-1precise2_i386.deb) ... | Unpacking replacement r-base-core ... | dpkg: dependency problems prevent configuration of r-base-core: | ?r-base-core depends on tk8.5 (>= 8.5.0); however: | ? Package tk8.5 is not installed. | dpkg: error processing r-base-core (--install): | ?dependency problems - leaving unconfigured | ... | ?r-base-core Package "tk8.5" is missing. | Obviously the hurdle here is tk8.5. I installed | ActiveTcl8.5.12.0.296033-linux-ix86-threaded.tar.gz from | activestate.com/activetcl/downloads, which tcl.tk | suggested for obtaining binaries. This however did not make R | any happier. Any suggestions would be greatly appreciated. Why did you think that would matter? Why did you think you needed something from outside Ubuntu itself> Just use the regular tk8.5 package, which apt-get should have suggested and pulled in anyway: edd at max:~$ apt-cache policy tk8.5 tk8.5: Installed: 8.5.11-1 Candidate: 8.5.11-1 Version table: *** 8.5.11-1 0 500 us.archive.ubuntu.com/ubuntu precise/main amd64 Packages 100 /var/lib/dpkg/status edd at max:~$ dpkg -s tk8.5 Package: tk8.5 Status: install ok installed Priority: optional Section: libs Installed-Size: 2963 Maintainer: Ubuntu Developers <ubuntu-devel-discuss at lists.ubuntu.com> Architecture: amd64 Version: 8.5.11-1 Provides: wish Depends: libc6 (>= 2.7), libfontconfig1 (>= 2.8.0), libx11-6, libxft2 (>> 2.1.1), libxss1, tcl8.5 (>= 8.5.0) Recommends: xterm | x-terminal-emulator Conflicts: libtk-img (<< 1.2.5), tk40 (<= 4.0p3-2) Description: Tk toolkit for Tcl and X11, v8.5 - run-time files Tk is a cross-platform graphical toolkit which provides the Motif look-and-feel and is implemented using the Tcl scripting language. This package contains everything you need to run Tk (wish) scripts and Tk-enabled apps. Original-Maintainer: Tcl/Tk Debian Packagers <pkg-tcltk-devel at lists.alioth.debian.org> Homepage: tcl.tk edd at max:~$ Dirk -- Dirk Eddelbuettel | edd at debian.org | dirk.eddelbuettel.com
Hello Dirk: Thank you for your reply. I thought that I need to install tk8.5 from an external source because a search with apt-cache search did not return that library. Paul L. helped me resolve this issue. In synaptic the "Software Sources" dialog box did not have Canonical Supported and From Source checked. I check this and did an apt-get update. I could then see the tk8.5 library, which then allowed me to install R :-) This is a new install of 12.04, I am not sure why that checkbox was unselected by default. Thanks, kc --- On Tue, 9/11/12, Dirk Eddelbuettel <edd@debian.org> wrote: From: Dirk Eddelbuettel <edd@debian.org> Subject: Re: [R-sig-Debian] ubuntu 12.04 install issues To: "Keith Chewning" <chewning_keith@yahoo.com> Cc: r-sig-debian@r-project.org Date: Tuesday, September 11, 2012, 6:18 AM On 10 September 2012 at 20:56, Keith Chewning wrote: | Hello: | | I have a new install of Ubuntu 12.04. I have tried to install R via source, | apt-get, and the deb packages from a cran mirror. Each of these had issues. | I followed the secure apt key install. The apt-get and deb installs each | have the same error. So, let's ignore the source install for now. This is the error: | | >> sudo dpkg -i r-base-core_2.15.1-1precise2_i386.deb | (Reading database ... 244318 files and directories currently installed.) | Preparing to replace r-base-core 2.15.1-1precise2 (using r-base-core_2.15.1-1precise2_i386.deb) ... | Unpacking replacement r-base-core ... | dpkg: dependency problems prevent configuration of r-base-core: | r-base-core depends on tk8.5 (>= 8.5.0); however: | Package tk8.5 is not installed. | dpkg: error processing r-base-core (--install): | dependency problems - leaving unconfigured | ... | r-base-core Package "tk8.5" is missing. | Obviously the hurdle here is tk8.5. I installed | ActiveTcl8.5.12.0.296033-linux-ix86-threaded.tar.gz from | activestate.com/activetcl/downloads, which tcl.tk | suggested for obtaining binaries. This however did not make R | any happier. Any suggestions would be greatly appreciated. Why did you think that would matter? Why did you think you needed something from outside Ubuntu itself> Just use the regular tk8.5 package, which apt-get should have suggested and pulled in anyway: edd@max:~$ apt-cache policy tk8.5 tk8.5: Installed: 8.5.11-1 Candidate: 8.5.11-1 Version table: *** 8.5.11-1 0 500 us.archive.ubuntu.com/ubuntu precise/main amd64 Packages 100 /var/lib/dpkg/status edd@max:~$ dpkg -s tk8.5 Package: tk8.5 Status: install ok installed Priority: optional Section: libs Installed-Size: 2963 Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> Architecture: amd64 Version: 8.5.11-1 Provides: wish Depends: libc6 (>= 2.7), libfontconfig1 (>= 2.8.0), libx11-6, libxft2 (>> 2.1.1), libxss1, tcl8.5 (>= 8.5.0) Recommends: xterm | x-terminal-emulator Conflicts: libtk-img (<< 1.2.5), tk40 (<= 4.0p3-2) Description: Tk toolkit for Tcl and X11, v8.5 - run-time files Tk is a cross-platform graphical toolkit which provides the Motif look-and-feel and is implemented using the Tcl scripting language. This package contains everything you need to run Tk (wish) scripts and Tk-enabled apps. Original-Maintainer: Tcl/Tk Debian Packagers <pkg-tcltk-devel@lists.alioth.debian.org> Homepage: tcl.tk edd@max:~$ Dirk -- Dirk Eddelbuettel | edd@debian.org | dirk.eddelbuettel.com [[alternative HTML version deleted]]