Hi, 

Is it a read only file system?

> change from
> purged to present failed: Could not set 'present on ensure: Read-only
> file system - /tmp/puppet20120216-1063-18q7lsz-0 at
> /tmp/vagrant-puppet/manifests/vagrant.pp:15

Try doing a remount on / with rw. 

Also check if you can do a manual install of the package once you confirm you 
can right to the file system. 

On 17/02/2012, at 6:03, Jair Gaxiola <jyr.gaxi...@gmail.com> wrote:

> Hi,
> 
> I try install python-psycopg2 with other packages, when run apt-get -y
> update returns the errors:
> 
> err: /Stage[main]/Etc/Package[build-essential]/ensure: change from
> purged to present failed: Could not set 'present on ensure: Read-only
> file system - /tmp/puppet20120216-1063-18q7lsz-0 at
> /tmp/vagrant-puppet/manifests/vagrant.pp:15
> 
> err: /Stage[main]/Etc/Package[python-psycopg2]/ensure: change from
> purged to present failed: Execution of '/usr/bin/apt-get -q -y -o
> DPkg::Options::=--force-confold install python-psycopg2' returned 100:
> W: Not using locking for read only lock file /var/lib/dpkg/lock
> E: dpkg was interrupted, you must manually run 'sudo dpkg --configure
> -a' to correct the problem.
> 
> 
> err: /Stage[main]/Python::Gunicorn/File[/var/log/gunicorn]/ensure:
> change from absent to directory failed: Could not set 'directory on
> ensure: Read-only file system - /var/log/gunicorn at
> /tmp/vagrant-puppet/modules-0/python/manifests/gunicorn.pp:11
> 
> notice: /Stage[main]/Python::Gunicorn/File[/var/run/gunicorn]/ensure: created
> 
> err: /Stage[main]/Python::Venv/Package[python-virtualenv]/ensure:
> change from purged to present failed: Execution of '/usr/bin/apt-get
> -q -y -o DPkg::Options::=--force-confold install python-virtualenv'
> returned 100: W: Not using locking for read only lock file
> /var/lib/dpkg/lock
> E: dpkg was interrupted, you must manually run 'sudo dpkg --configure
> -a' to correct the problem.
> 
> 
> err: /Group[puppet]/ensure: change from absent to present failed:
> Could not create group puppet: Execution of '/usr/sbin/groupadd
> puppet' returned 1:
> 
> err: /Stage[main]/Etc/Package[libcurl3-dev]/ensure: change from purged
> to present failed: Execution of '/usr/bin/apt-get -q -y -o
> DPkg::Options::=--force-confold install libcurl3-dev' returned 100: W:
> Not using locking for read only lock file /var/lib/dpkg/lock
> E: dpkg was interrupted, you must manually run 'sudo dpkg --configure
> -a' to correct the problem.
> 
> 
> err: /Stage[main]/Etc/Package[curl]/ensure: change from purged to
> present failed: Execution of '/usr/bin/apt-get -q -y -o
> DPkg::Options::=--force-confold install curl' returned 100: W: Not
> using locking for read only lock file /var/lib/dpkg/lock
> E: dpkg was interrupted, you must manually run 'sudo dpkg --configure
> -a' to correct the problem.
> 
> 
> err: /Stage[main]/Monit/Package[monit]/ensure: change from purged to
> present failed: Execution of '/usr/bin/apt-get -q -y -o
> DPkg::Options::=--force-confold install monit' returned 100: W: Not
> using locking for read only lock file /var/lib/dpkg/lock
> E: dpkg was interrupted, you must manually run 'sudo dpkg --configure
> -a' to correct the problem.
> 
> 
> notice: /Stage[main]/Monit/File[/etc/default/monit]: Dependency
> Package[monit] has failures: true
> 
> warning: /Stage[main]/Monit/File[/etc/default/monit]: Skipping because
> of failed dependencies
> 
> notice: /Stage[main]/Monit/File[/etc/monit/monitrc]: Dependency
> Package[monit] has failures: true
> 
> warning: /Stage[main]/Monit/File[/etc/monit/monitrc]: Skipping because
> of failed dependencies
> 
> notice: /Stage[main]/Monit/File[/etc/logrotate.d/monit]: Dependency
> Package[monit] has failures: true
> 
> warning: /Stage[main]/Monit/File[/etc/logrotate.d/monit]: Skipping
> because of failed dependencies
> 
> notice: /Stage[main]/Monit/Service[monit]: Dependency Package[monit]
> has failures: true
> 
> warning: /Stage[main]/Monit/Service[monit]: Skipping because of failed
> dependencies
> 
> err: /Stage[main]/Etc/Package[git-doc]/ensure: change from purged to
> present failed: Execution of '/usr/bin/apt-get -q -y -o
> DPkg::Options::=--force-confold install git-doc' returned 100: W: Not
> using locking for read only lock file /var/lib/dpkg/lock
> E: dpkg was interrupted, you must manually run 'sudo dpkg --configure
> -a' to correct the problem.
> 
> 
> err: /Stage[main]/Etc/Package[libcurl4-gnutls-dev]/ensure: change from
> purged to present failed: Execution of '/usr/bin/apt-get -q -y -o
> DPkg::Options::=--force-confold install libcurl4-gnutls-dev' returned
> 100: W: Not using locking for read only lock file /var/lib/dpkg/lock
> E: dpkg was interrupted, you must manually run 'sudo dpkg --configure
> -a' to correct the problem.
> 
> 
> err: /Stage[main]/Dev/Exec[apt-get -y update]/returns: change from
> notrun to 0 failed: /usr/bin/apt-get -y update returned 100 instead of
> one of [0] at /tmp/vagrant-puppet/manifests/vagrant.pp:62
> 
> err: /Stage[main]/Dev/Exec[apt-get -y make]/returns: change from
> notrun to 0 failed: /usr/bin/apt-get -r make upgrade returned 100
> instead of one of [0] at /tmp/vagrant-puppet/manifests/vagrant.pp:70
> 
> err: /Stage[main]/Dev/Exec[apt-get -y upgrade]/returns: change from
> notrun to 0 failed: /usr/bin/apt-get -y upgrade returned 100 instead
> of one of [0] at /tmp/vagrant-puppet/manifests/vagrant.pp:66
> 
> err: /Stage[main]/Nginx/Package[nginx]/ensure: change from purged to
> present failed: Execution of '/usr/bin/apt-get -q -y -o
> DPkg::Options::=--force-confold install nginx' returned 100: W: Not
> using locking for read only lock file /var/lib/dpkg/lock
> E: dpkg was interrupted, you must manually run 'sudo dpkg --configure
> -a' to correct the problem.
> 
> 
> notice: /Stage[main]/Nginx/File[/etc/nginx/nginx.conf]: Dependency
> Package[nginx] has failures: true
> 
> warning: /Stage[main]/Nginx/File[/etc/nginx/nginx.conf]: Skipping
> because of failed dependencies
> 
> notice: /Stage[main]/Nginx/Service[nginx]: Dependency Package[nginx]
> has failures: true
> 
> warning: /Stage[main]/Nginx/Service[nginx]: Skipping because of failed
> dependencies
> 
> notice: /Stage[main]/Nginx/File[/etc/logrotate.d/nginx]: Dependency
> Package[nginx] has failures: true
> 
> warning: /Stage[main]/Nginx/File[/etc/logrotate.d/nginx]: Skipping
> because of failed dependencies
> 
> notice: /Stage[main]/Nginx/File[/etc/nginx/mime.types]: Dependency
> Package[nginx] has failures: true
> 
> warning: /Stage[main]/Nginx/File[/etc/nginx/mime.types]: Skipping
> because of failed dependencies
> 
> err: /Stage[main]/Etc/Package[git-core]/ensure: change from purged to
> present failed: Execution of '/usr/bin/apt-get -q -y -o
> DPkg::Options::=--force-confold install git-core' returned 100: W: Not
> using locking for read only lock file /var/lib/dpkg/lock
> E: dpkg was interrupted, you must manually run 'sudo dpkg --configure
> -a' to correct the problem.
> 
> 
> notice: /Stage[main]/Nginx/File[/etc/nginx/sites-enabled/default]:
> Dependency Package[nginx] has failures: true
> 
> warning: /Stage[main]/Nginx/File[/etc/nginx/sites-enabled/default]:
> Skipping because of failed dependencies
> 
> err: /Stage[main]/Python::Dev/Package[python-dev]/ensure: change from
> purged to present failed: Execution of '/usr/bin/apt-get -q -y -o
> DPkg::Options::=--force-confold install python-dev' returned 100: W:
> Not using locking for read only lock file /var/lib/dpkg/lock
> E: dpkg was interrupted, you must manually run 'sudo dpkg --configure
> -a' to correct the problem.
> 
> 
> err: /Stage[main]/Etc/Package[libxslt-dev]/ensure: change from purged
> to present failed: Execution of '/usr/bin/apt-get -q -y -o
> DPkg::Options::=--force-confold install libxslt-dev' returned 100: W:
> Not using locking for read only lock file /var/lib/dpkg/lock
> E: dpkg was interrupted, you must manually run 'sudo dpkg --configure
> -a' to correct the problem.
> 
> 
> err: Failed to apply catalog: Read-only file system -
> /var/lib/puppet/state/state.yaml
> 
> err: Could not save last run local report: Read-only file system -
> /var/lib/puppet/state/last_run_summary.yaml
> 
> err: /File[/var/lib/puppet/rrd]/ensure: change from absent to
> directory failed: Could not set 'directory on ensure: Read-only file
> system - /var/lib/puppet/rrd
> 
> err: Could not send report: Got 1 failure(s) while initializing:
> change from absent to directory failed: Could not set 'directory on
> ensure: Read-only file system - /var/lib/puppet/rrd
> 
> The line 15 is ensure => installed
> 
> class etc {
>    package {
>        ["python-psycopg2", "git-core", "build-essential", "git-doc",
> "ufw", "libcurl3-dev",
>         "libcurl4-gnutls-dev", "libxslt-dev", "curl", "libxml2-dev" ]:
>            ensure => installed;
>    }
> }
> 
> class dev {
>  exec { 'apt-get -y update':
>    command => '/usr/bin/apt-get -y update'
>  }
> 
>  exec { 'apt-get -y upgrade':
>    command => '/usr/bin/apt-get -y upgrade'
>  }
> 
>  exec { 'apt-get -y make':
>    command => '/usr/bin/apt-get -r make upgrade'
>  }
>  class {
>    etc: ;
>  }
> }
> 
> 
> Any suggestions?
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/puppet-users?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to