[Debian Wheezy] Easy install LinuxCNC

More
16 Aug 2015 16:27 #61426 by cncbasher
Jerry ,
the lock file is easily fixed , just delete the file called lock
/var/lib/dpkg/lock
it is used to protect , and to allow only one update program at a time , so if you have for instance synaptic package manager open , it wont allow you to use apt-get or aptitude
and same if using aptitude etc , it wont allow synaptic .

sometimes you exit the package application and the lock file does not get deleted .

so use sudo rm /var/lib/dpkg/ lock

i find gedit much easier to use

Please Log in or Create an account to join the conversation.

More
16 Aug 2015 16:28 #61427 by birchy

Birchy said... to try this...
$ su (enter root password)
$ aptitude install gedit

Anyway... in terminal I typed
su mongo

WHY? As the error message says, you were not root user, so you were not allowed to install anything. Had you of simply typed "su" (as instructed) you might of got a bit further...

Please Log in or Create an account to join the conversation.

More
16 Aug 2015 20:29 - 16 Aug 2015 20:32 #61439 by Askjerry
Birchy -

when I typed su (without typing anything else) and hit enter... it asks for a password... I enter mongo...
then I get Authentication failure so it won't allow me to do the aptitude install gedit part. :(

Cncbasher - In terminal it went like this...

mongo@MONGO:-$ su mongo
Password: mongo
mongo@MONGO:-$ rm /var/lib/dpkg/lock
rm: remove write-protected regular empty file '/var/lib/dpkg/lock' ? y
rm: cannot remove '/var/lib/dpkg/lock' : Permission denied
mongo@MONGO:-$

So that option did not work either unfortunately. :dry:

Next step... pulled out 100 foot LAN cable, ran it across the floor to the router and plugged it in... going to Synaptic Package Manager...

I still don't know exactly what I'm doing... but enough to find search and enter gedit... it said there were other dependent files... so I told it yes in response to being asked to install them too... running... and it says successful. :lol:

Let me give it a try... yup... I now have GEDIT... whoo! :woohoo:

--> I updated the xxxxxxxxxxx.ini file to make the EDITOR = GEDIT again... also successful.

Thanks,
Jerry
Last edit: 16 Aug 2015 20:32 by Askjerry. Reason: Additional details.

Please Log in or Create an account to join the conversation.

More
16 Aug 2015 21:42 #61441 by birchy
For future reference... to login as root you need to use "su" and NOT "su mongo".

Please Log in or Create an account to join the conversation.

More
16 Aug 2015 22:22 #61446 by Askjerry
I did... that is what I was saying in the last post... it went like this...

Terminal started...

mongo@MONGO:-$ su
Password: mongo
su: Authentication failure
mongo@MONGO:-$

Please Log in or Create an account to join the conversation.

More
17 Aug 2015 04:04 #61465 by LearningLinuxCNC
Could you not also use?
$ sudo aptitude install gedit

I never log in as root. I simply use sudo before a command that needs root privileges.

Please Log in or Create an account to join the conversation.

More
17 Aug 2015 04:38 #61466 by birchy

Could you not also use?
$ sudo aptitude install gedit

I never log in as root. I simply use sudo before a command that needs root privileges.


Yes, but you need to first add yourself to the sudo'ers list and we don't need any further complications. :laugh:

Please Log in or Create an account to join the conversation.

More
17 Aug 2015 17:43 - 17 Aug 2015 17:47 #61481 by cncbasher
jerry add yourself to sudors

sudo gedit /etc/sudoers
( enter your password )

find
# User privilege specification
root ALL=(ALL:ALL) ALL
copy the line and change the word from root to mongo i.e

# User privilege specification
root ALL=(ALL:ALL) ALL
mongo ALL=(ALL:ALL) ALL
save file
then logout and log back in to make changes work

then you can do sudo apt-get -y install gedit
or
sudo aptitude install gedit


another option is to use the root terminal , rather than the standard terminal
their are many ways to do things , as you will find out .
Last edit: 17 Aug 2015 17:47 by cncbasher.
The following user(s) said Thank You: Askjerry

Please Log in or Create an account to join the conversation.

More
05 Sep 2015 12:34 #62142 by Askjerry
Yeah... new operating system (for me), so new adventures.

I'm getting there... been designing custom panels for friends... getting pretty good at it... not perfect... but pretty good.

Eventually I'll play with PY code and get into GLADE more... but i think I'm doing pretty well with pyVCP.

Please Log in or Create an account to join the conversation.

More
05 Sep 2015 16:13 #62143 by cncbasher
your doing fine Jerry
just ask if you need assistance , see my profile for email
don't worry linux gets easier over time , then they throw a new spanner in the works , that sets you back to the beginning , and start all over again haha

Please Log in or Create an account to join the conversation.

Time to create page: 0.090 seconds
Powered by Kunena Forum