Results 1 to 10 of 10
Hey,
Now that I got my newest version of ubuntu ( Ubuntu-9.04 ) and have to install asterisk to go on with my project work. But I'm struck coz of ...
- 08-25-2009 #1Just Joined!
- Join Date
- Aug 2009
- Posts
- 80
unable to lock the download directory
Hey,
Now that I got my newest version of ubuntu ( Ubuntu-9.04 ) and have to install asterisk to go on with my project work. But I'm struck coz of install problem in the terminal.
First thing I did was:
sudo apt-get update ( worked fine )
sudo apt-get install linux-headers-$(uname -r) build-essential
automake autoconf bison flex libtool libncurses5-dev libssl-dev
subversion svn-buildpackage
cd asterisk-1.6.0
sudo make clean
sudo ./configure
Well after this I got the following error :
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking how to run the C preprocessor... gcc -E
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
When I went for option: sudo apt-get install g++
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-2.6.28-11 linux-headers-2.6.28-11-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
g++-4.3 libstdc++6-4.3-dev
Suggested packages:
g++-multilib g++-4.3-multilib gcc-4.3-doc libstdc++6-4.3-dbg
libstdc++6-4.3-doc
The following NEW packages will be installed:
g++ g++-4.3 libstdc++6-4.3-dev
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
E: Could not get lock /var/cache/apt/archives/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the download directory
How do I fix it?
- 08-25-2009 #2
Do you have synaptic open at the same time? You must close it before using the command line to install anything, likewise, you cannot use synaptic while a command line apt-get command is running.
- 08-25-2009 #3Just Joined!
- Join Date
- Aug 2009
- Posts
- 80
No it's closed.
All I have running is my mailbox and terminal.
- 08-25-2009 #4Linux Guru
- Join Date
- Jan 2009
- Location
- Dover, NH
- Posts
- 1,633
Before you go all source-happy, do yourself a favor.
Open Synaptic and do a search for "asterisk"
- 08-26-2009 #5Just Joined!
- Join Date
- Aug 2009
- Posts
- 80
Alright installed Asterisk from Synaptic package manager.
But for some reason I couldn't open files with extension .conf.
What Am I missing?
- 08-26-2009 #6
what do you mean "you can't open them?"
How are you trying to open them, in GUI or using command line text editor?
- 08-26-2009 #7Just Joined!
- Join Date
- Aug 2009
- Posts
- 80
Right-click over the file and click open.
I'm not aware of using command text editor.
I noticed a no read image over few files which refused to open.
- 08-26-2009 #8
Usually configuration files for software require root user privileges in order to modify them, not very often just to at least look at them. I would use a terminal to access them, either using gedit, vi, nano, whichever you prefer, and use sudo command.
- 08-26-2009 #9Just Joined!
- Join Date
- Aug 2009
- Posts
- 80
Thanks the below command did the job.
sudo nano /etc/asterisk/extension.conf
After editing the file with either nano or gedit, how do I save it?
Even my root dir does the same thing.
- 08-26-2009 #10Linux Guru
- Join Date
- Jan 2009
- Location
- Dover, NH
- Posts
- 1,633
The menu on the bottom lists the common commands. "^" means "Control."
Thus, to save is [Ctrl + o], to exit is [Ctrl + x].


Reply With Quote