Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-05-2012, 09:33 AM
|
#1
|
LQ Newbie
Registered: Jun 2012
Posts: 6
Rep: 
|
New to ns2 need help with installation.
Hi,
I am just starting out with ns2 and i am having difficulty installing ns-allinone 2.34 on my ubuntu 10.10.
After extracting ns-allinone 2.34 into the home folder i run the following on the command line and this is what i get.
command: selorm@ubuntu:~$ cd /home/selorm/ns-allinone-2.34
result: selorm@ubuntu:~/ns-allinone-2.34$
command: sudo apt-get install build-essential autoconf automake libxmu-dev gcc-4.3
result: [sudo] password for selorm:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package build-essential
E: Unable to locate package autoconf
E: Unable to locate package automake
E: Unable to locate package libxmu-dev
E: Unable to locate package gcc-4.3
E: Couldn't find any package by regex 'gcc-4.3'
selorm@ubuntu:~/ns-allinone-2.34$
i will be grateful if some one could help out with this challenge.
thank you
|
|
|
06-05-2012, 10:12 AM
|
#2
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
Welcome to LQ.
Looks OK. Except that g++-4.1 should be used : sudo apt-get install g++-4.1
No gcc-4.3 is required any more.
( ? Could be used at 10.10 release time, and until a year ago.)
About your "download errors" : Ubuntu 10.10 is unsupported,
some mirrors may not work any more.
But first, please try with a : sudo apt-get update
Which URL are you using in /etc/apt/sources.list ?
( 'cat /etc/apt/sources.list' ).
Like : deb http://extras.ubuntu.com/ubuntu maverick main
( The above mirror still works.)
.
Last edited by knudfl; 06-05-2012 at 10:14 AM.
|
|
|
06-05-2012, 11:01 AM
|
#3
|
LQ Newbie
Registered: Jun 2012
Posts: 6
Original Poster
Rep: 
|
thanks for your reply
i did run sudo apt-get install g++-4.1 but it still gave me an error as below
selorm@ubuntu:~$ sudo apt-get install g++-4.1
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
selorm@ubuntu:~$
|
|
|
06-05-2012, 11:26 AM
|
#4
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 3.
Quote:
Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
|
May be Synaptic is running ? ( Shut it down.)
Or the automatic update is running ? Then just wait until it finishes.
.
|
|
|
06-07-2012, 07:25 AM
|
#5
|
LQ Newbie
Registered: Jun 2012
Posts: 6
Original Poster
Rep: 
|
hi
i did find what i was doing wrong, and after installing the ns-2.34
i tried to run the following and this was the result
selorm@ubuntu:~$ sudo apt-get install ns nam xgraph
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package ns
selorm@ubuntu:~$
please tell me what i am doing wrong again
thanks
|
|
|
06-07-2012, 07:42 AM
|
#6
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 5
Quote:
sudo apt-get install ns nam xgraph
|
Please do not install any ns (nam ?) from Ubuntu.
The ns package name is "ns2". Is version 2.35, will conflict with ns-2.34,
unless you rename /usr/bin/ns to /usr/bin/ns235.
Some libraries are installed too. Not versions that ns-2.34 can use.
( More possible conflicts.)
.
|
|
|
06-07-2012, 09:01 AM
|
#7
|
LQ Newbie
Registered: Jun 2012
Posts: 6
Original Poster
Rep: 
|
hi
thanks for your help my ns is now working your site has been very helpful thank you
|
|
|
06-13-2012, 05:35 AM
|
#8
|
LQ Newbie
Registered: Jun 2012
Posts: 6
Original Poster
Rep: 
|
Package Error
Hi,
i am try to install a program(Umbrello) on my ubuntu 10.04
and it keeps giving me the following error.
Requires installation of untrusted packages
The action would require the installation of packages from not authenticated sources.
please help me fix this, it used not to be like this.
i tried installing other software and its the same error.
thank you.
|
|
|
06-13-2012, 05:51 AM
|
#9
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
Post #8 : Umbrello http://uml.sourceforge.net/
Quote:
... packages from not authenticated sources
|
Happens too with the other Ubuntu versions, when they are old.
I guess they "forget" to replace the old authenticating keys.
Can usually be ignored, when the packages origin from the Ubuntu repo.
.
|
|
|
06-18-2012, 07:39 AM
|
#10
|
LQ Newbie
Registered: Jun 2012
Posts: 6
Original Poster
Rep: 
|
Hi,
i keep getting an error any time i try to run a sample script in ns 2.34
on my ubuntu 10.04. the error is as below.
% ns simple_network.tcl
warning: using backward compatibility mode
error when calling class OldSim: simple_network.tcl
%
please help me fix this, i think i may be getting my path wrong.
|
|
|
All times are GMT -5. The time now is 06:31 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|