Hi,

I am trying to install gcc-4.7 on Ubuntu in puppet. Ubuntu comes with 
gcc-4.6.3 as default. I have following puppet code:

    apt::ppa {"ppa:ubuntu-toolchain-r/test":
    }   
    package {["gcc-4.7", "g\+\+-4.7"]: 
      ensure => installed, 
      require => [Apt::Ppa["ppa:ubuntu-toolchain-r/test"], Exec["apt-get -y 
update"]]
    }   

When I test it I get this error message. Please advise if anyone has tried 
to install gcc4.7 in puppet.

Error: Execution of '/usr/bin/apt-get -q -y -o 
DPkg::Options::=--force-confold install gcc-4.7' returned 100: Reading 
package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  cpp-4.7 gcc-4.7-base gcc-4.8-base libgcc-4.7-dev libgcc1 libgomp1 libitm1
  libquadmath0
Suggested packages:
  gcc-4.7-locales gcc-4.7-multilib libmudflap0-4.7-dev gcc-4.7-doc 
libgcc1-dbg
  libgomp1-dbg libitm1-dbg libquadmath0-dbg libmudflap0-dbg libcloog-ppl0
  libppl-c4 libppl9 libpwl5 binutils-gold
The following NEW packages will be installed:
  cpp-4.7 gcc-4.7 gcc-4.8-base libgcc-4.7-dev libitm1
The following packages will be upgraded:
  gcc-4.7-base libgcc1 libgomp1 libquadmath0
4 upgraded, 5 newly installed, 0 to remove and 107 not upgraded.
Need to get 14.2 MB of archives.
After this operation, 32.1 MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  gcc-4.8-base libgcc1 libgomp1 libitm1 libquadmath0 gcc-4.7-base cpp-4.7
  libgcc-4.7-dev gcc-4.7
E: There are problems and -y was used without --force-yes

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to