Ubuntu :: Execute The Apt-get Update
Sep 1, 2011When trying to execute the apt-get update i got the following error
[Code]...
When trying to execute the apt-get update i got the following error
[Code]...
I have a bug in the latest release of Ubuntu wich is stoppping me running update manager, or syn package manager. I cannot run a bug report as it comes back error. Is there a way to run using a command line. My system was fully up to date about a week ago.
View 3 Replies View RelatedI have succesfully installed Debian with gnome-core, iceweasel and other useful packages and also followed this guide to autologin and start X. I noticed that the sudo chmod +s /sbin/halt and adding /sbin/halt
in ~/.bashrc made Debian refuse me to log out (from X) and 'log out' turns off the computer insted.Removing /sbin/halt from .bashrc turned everything to as i want it. Should I "repair" or remove something I created with chmod +s command or should I leave it as it is?
Also I would like apt-get(or aptitude) update to run after login (and before startx), so i added sudo apt-get update to .bashrc but it will prompt me with password. Is there someway I could do this without the password(s) which su/sudo needs to execute? This is not so important but it would be very nice to update the system on startup.
i created a /tmp partition amd mounted it like this:" mount -o loop,noexec,nosuid,rw /usr/tmpDSK /tmp"
I know i can't execute things in /tmp now but is there a way to execute only one file and no more???
I'm getting a yum crash when I try to execute "yum update". How could I resolve this.
[root@some_system]# yum update
Loaded plugins: fastestmirror
[Code].....
Is there a way to execute some command and then after the command completes utomatically reboot the system and then after the system reboots execute another command ? For example look at the sequence shown below(1) Execute command-1(2) After the command-1 in (1) is completed,reboot the system (3) Execute command-2(4) After execution of command-2 reboot the sytemIs there a way i can automate this process so that i need not reboot the system manually
View 5 Replies View RelatedI have a file with two fields of numbers that I want to use as input for another program.
Code:
The above code does not work, as I think it would take the whole first and second fields as the input for one particular instance of the program 'inputbashangle'. What I want is to get the first two numbers from the first line of the file 'outfailtest', execute 'inputbashangle' with them, then move on to the first two numbers of the second line for all the lines of 'outfailtest'.
I was wondering if it was possible to execute a program from RAM, like having the file data in a bash script variable and then running it.
Something like this:
ls=`cat ls`
$ls
So is it possible to run a program without touching the hard disk and without creating tmpfs or ramfs (it would need to be standard user privileges).
I'm having trouble printing with CUPS. Turns out that none of the binaries under /opt/OpenPrinting-Gutenprint can be executed. Witness:
root$ cd /opt/OpenPrinting-Gutenprint/bin
root$ ./cups-calibrate
bash: ./cups-calibrate: Permission denied
[code]...
execute a .bin file. I have downloaded an application but I cannot run it (not recognized by double click).
View 7 Replies View RelatedI have written a shell script and set the permissions to executable. It works fine. I burn it to a cd. But then, I cannot run it from the cd. All of the execute permissions are gone.
View 1 Replies View RelatedI am having trouble getting files to execute, even though I used chmod 777 on them, I don't know what I did wrong, I use ubuntu server so only the terminal is available to me.
View 7 Replies View RelatedI'm trying to execute a .jar file(SwingTest.jar). I change the directory to where the .jar is(Desktop). Then type the following EXACTLY:java -jar SwingTest.jarBut all it outputs is:Failed to load Main-Class manifest attribute fromSwingTest.jar
View 7 Replies View RelatedI was in the wrong directory when I did a chmod +x *.bin, so now all of my commands in the terminal come back with the error "Cannot execute binary file." From ls, to cd .. I get this error. I seem to be able to do things with sudo, but does anyone know how to fix all of my permissions so that basic terminal commands come back?
View 9 Replies View RelatedI have a collection of ELF executables that I am trying to run from a FAT filesystem. How can I do this without modifying the OS?p.s. I am running 11.04
View 3 Replies View RelatedTrying to setup a new Ubuntu machine and just downloaded 'p4' (Perforce command line client). It's a single file download - a statically-linked binary executable, so I just did:
wget [URL]
...right into /usr/bin. Simple enough. Except:
root@aj-ubuntu:/usr/bin# ll p4
-rwxr-xr-x 1 root root 748808 2010-02-11 16:54 p4
root@aj-ubuntu:/usr/bin# ./p4
[Code].....
what is wrong i have a web server setup and working fine running a web store in php i have added a search engine for the web the easiest setup programme is with an extension .pl when i try and execute this it asks me if i want to download it or open it i had this problem with the php script which a reboot sorted out so i have tried rebooting but get the same problem does anybody know how i can get it to execute on my server?
View 2 Replies View RelatedI have installed rkhunter, unhide and chkrootkit and which I want to execute through a script. Now what I want is after successful login and starting all startup applications it will launch a terminal and run the script there.
View 1 Replies View RelatedFollowing is the IDL program found on the internet but i dont know how to compile and execute (even dont know can it be done under linux).
Code:
I have such kind of problem recently. I need to run a command in the remote machine. The script's first line contains "source profile.xxx"
#!/bin/sh
. ${CONF_XXX}/profile.perf
Therefore, when I run it this way: ssh root@pprh4 /scratch/pa/pa701/path/1.2/bin/plcclient.sh -s it says "profile.xxx No such file or directory" And another one is how can I use a specific file for storing my password so that I don't have to type it?
I would like to be able to execute a script every time X is shut down (e.g., by Ctrl+Alt+Backspace), namely, logout. Is this possible? If it is, in what file do I put the command/script?
View 9 Replies View RelatedI have written a device driver and would like to load it automatically and generate the device nodes. I wrote a config script that I would like to execute at boot and added it to rc.local. It will not run at boot up and I have spent hours researching. The file is below:
#!/bin/sh -e
#
# rc.local
[code]....
If I execute this script from the command line, it works fine. But it does not work at boot up. The echo command is never executed. The link S99rc.local did not exist in any of the runtime directories. I created S99rc.local in /etc/rc2.d and linked it to ../init.d/rc.local. This did not help. The link /etc/rc2.d/S20rc.local already existed.
I have a strange issue on one of my machines. The same thing works fine on all the others. When I execute:
Code:
sudo -u myuser -i ls
I get:
Code:
/bin/ls: /bin/ls: cannot execute binary file
On the other hand if I just run
Code:
sudo -u myuser -i
and then run ls, it executes successfully, but I don't want to stay logged in as myuser I just want to run a single command.
I want to start my Ubuntu 10.04 and without logging in I need a command started. The command is setxkbmap .... So, I will not put the command in my .profile, nor in my .bashrc, because I am not going to login.
View 2 Replies View RelatedI have a script --> WEP.sh and i want to open severel new processes in a second shell.
gnome-terminal -e "airmon-ng check" #this is working... but is there any possibility to execute other commands in a row in that same newshell for example airmon-ng stop wlan1 or sleep 10 or echo....?
Ubuntu version 10.10File location inside a folder on DesktopFile extn : .shI need to run this file in terminal console, but what path to be given is the question.
View 5 Replies View RelatedI am trying to setup Ubuntu with Apache2+Tomcat6. I can get the site up and running, however when I have a jsp file it does not execute, instead it just prints the full jsp to browser.
I am checking if there is a configuration issue that may be missed.
sudo /etc/init.d/tomcat6 status # shows fine
/etc/apache2/sites-available has a file for my site containing valid DocumentRoot
/home/user/sitename/webapps/examples
/home/user/sitename/webapps/examples/jsp
/home/user/sitename/webapps/examples/jsp/sample.jsp contains below text
<%= "hello" %>
When above page is visited in browser, it shows full html tags instead of displaying the output. It displays static pages fine.
I have now had an Ubuntu desktop server on a very crappy server (network filesystem with enourmus latency) for a year and as the subscription will soon run out I opted for a slightly better one, still crappy but at least a "complete server" (cpu+mem+HD).And a headless installation of Ubuntu Server 10.10 "Maverick Meerkat" instead of my Desktop version.I'm not using it for web pages or other 'ordinary' things though, I'm running my homemade MMORPG off of it and this new headless situation is a bit unclear to me.
I created an account and password with my root account, a folder with the username was created in /home/ and I uploaded my mmorpg executable there with an ftp client.I tried to change the whole folder (being root) to 777 but it didn't work either.
i am using ubuntu 9.10 and i want to execute JAP ,the java -version on my system replies this:
Code:
khosro@khosro-laptop:~$ java -version
java version "1.5.0"
[code]....
Before I re-installed ubuntu I could just double click a shell script and I got prompted to chose if I wanted to edit it or run it. Now it just opens it in gedit.How do I execute it using the GUI not the command?
View 4 Replies View Related