Note that there are some explanatory texts on larger screens.

plurals
  1. POInstalling ruby1.8 failed (unable to access dpkg)
    primarykey
    data
    text
    <p>I was trying to install ruby on my remote server(this is a vm machine(debian) in a esxi server . ) I got this error:</p> <p>The Command:</p> <pre><code>sudo apt-get install ruby1.8 </code></pre> <p>Error : </p> <pre><code>W: Not using locking for read only lock file /var/lib/dpkg/lock E: Unable to write to /var/cache/apt/ E: The package lists or status file could not be parsed or opened. </code></pre> <p>then I tried :</p> <pre><code>sudo dpkg -- configure -a </code></pre> <p>Output:</p> <pre><code>dpkg: need an action option Type dpkg --help for help about installing and deinstalling packages [*]; Use `dselect' or `aptitude' for user-friendly package management; Type dpkg -Dhelp for a list of dpkg debug flag values; Type dpkg --force-help for a list of forcing options; Type dpkg-deb --help for help about manipulating *.deb files; Options marked [*] produce a lot of output - pipe it through `less' or `more' ! </code></pre> <p><strong>UPDATE:</strong> </p> <p>output of <code>mount</code> </p> <pre><code>/dev/sda3 on / type ext4 (rw,errors=remount-ro) tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) udev on /dev type tmpfs (rw,mode=0755) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620) /dev/sda1 on /boot type ext4 (rw) /dev/sdb1 on /home type ext4 (rw) mount: warning: /etc/mtab is not writable (e.g. read-only filesystem). It's possible that information reported by mount(8) is not up to date. For actual information about system mount points check the /proc/mounts file. </code></pre> <p>What should I do ?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload