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 
| http://www.activestate.com/activetcl/downloads, which www.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 http://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: http://www.tcl.tk/
edd@max:~$ 

Dirk 

-- 
Dirk Eddelbuettel | edd@debian.org | http://dirk.eddelbuettel.com  

	[[alternative HTML version deleted]]

