Installing ruby1.8 failed
        Posted  
        
            by 
                Subhransu
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Subhransu
        
        
        
        Published on 2012-08-29T15:37:25Z
        Indexed on 
            2012/08/29
            15:38 UTC
        
        
        Read the original article
        Hit count: 641
        
I was trying to install ruby on my remote server I got this error:
The Command:
sudo apt-get install ruby1.8
Error :
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.
then I tried :
sudo dpkg -- configure -a 
Output:
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' !
What should I do ?
© Stack Overflow or respective owner