Programming :: Script For Updates - Echo "update Failed"
Jul 27, 2010
I am trying to automate yum update of specific package on a remote machine. Essentially, the script executes, does a yum update, if not needed it would return echo result "update successful", if it needs the update and it installs it without error, it will return echo result "update successful", or if it fails the update it would echo "update failed". So far I have this:
[code]...
This is OK, but I NEED it to just return the final echo "Update successful". I can't have all the other lines. How can I do this?
when I open the update manager, he lists 14 items as recomended updates and when I click on install updates appears a box with this mesage "An error occurred" and makes the following list: Code: W: Failed to fetch [URL] Size mismatch
I am trying to echo some value using awk, and for reading the file i am using cat command. If there no space in the file content then the following script result correctly.
console: # cat 1 one;two;three; four;five;six;
[code]....
In case any space is there in the file 1 then i am facing the problem in the output value
I am testing the serial ports on a Single Board Computer(SBC) running Linux kernel 2.6.29. I usually do this by connecting the serial port to another PC serial port, then doing "cat /dev/ttyS0" on PC and "echo hello > /dev/ttyS0" on the SBC. However in the current system, "echo hello > /dev/ttyS0" command does not return at all! Also no characters appear on the destination port. I am running the echo command as root. The system boot messages show that the serial port in indeed /dev/ttyS0.
I have always encountered this problem in ubuntu bash shell scripts that echo command in a function will be treated as a return value when used in a function. e.g.
[code]...
The output would simply be xyz. Hence the echo seems to function as a "return" command when used in a function with a return value.
I am working on an epoll version of an echoserver that I am porting from a multithreaded version I wrote.What it should do: The server should get a connection from a client > say x client connected > print x message from said client. What it is doing: The server looks like it is only accepting one connection at a time, and any other clients are queued. When the queue is empty it looks like the program is aborting with a SIGABRT. EDIT:// fixed the program exiting in the close function. Still one client at a time
I am a student taking part in a comptition. We have a set of questions to complete within today. Can anyone please help me out with it. I have a custom written "echo" program in C, running on port number "1220" which echoes back the first 16 characters of whatever is given as the first command line argument. But somehow, my brother had got unauthorized remote root access. The program is given below. How did he do it? Please give the exploit code and explain how it works.
When I try to run the Online Updates to the system through Yast I get the following errors for each package:
[QUOTE] Subprocess failed. Error: RPM failed: warning: /var/cache/zypp/packages/Packman Repository/Multimedia/i586/libaudcore1-2.4.4-1.pm.1.1.i586.rpm: Header V3 DSA/SHA1 Signature, key ID 9a795806: NOKEY error: db3 error(-30987) from dbcursor->c_get: DB_PAGE_NOTFOUND: Requested page not found error: error(-30987) getting "" records from Requireversion index error: db3 error(-30987) from dbcursor->c_get: DB_PAGE_NOTFOUND: Requested page not found [Code]...
Libnss3-1d xulrunner-1.9.1 xulrunner-1.9.1-gnome support
After click on install updates and entering password, a message says "Some of the packages could not be retrieved from the server(s). Do you want to continue, ignoring these packages? Yes/No.
If I answer No, this message appears:
W: Failed to fetch http://security.ubuntu.com/ubuntu/po....10.1_i386.deb 404 Not Found [IP: 91.189.88.31 80]
If Yes, it tries to download but immediately:
W: Failed to fetch http://security.ubuntu.com/ubuntu/po....10.1_i386.deb 404 Not Found [IP: 91.189.88.31 80]
It has always installed the updates with no problems, until these 3 updates remain in pending installation status.
Today i upgraded my system and started getting error when i update, install or remove a package. The error isn't restricted only to one repository so i thing something is wrong with my system.
When I reboot and log into my account ( I am the only user ) I get the following message at the bottom of the screen.Software Updates Failed An important OS update failed to be inst...
Package Mgr Error
The offline update failed in an unexpected way.Detailed errors from the package manager follow:Cannot download packages whilst offline..It is always the same message and it never says what it was trying to install. I have run apt-get update and apt-get upgrade. The only error I ever see is: E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
I've recently ran the Updater Applet to install any pertinent official openSUSE updates, but I got 2-3 (they vanished before I could click on them) popups on the bottom right of my screen saying that an update had failed. Additionally, I found the following message in the Updater's lower panel:
Code: This update fixes an issue caused by a previous yast2-ncurses update, which would leave some ncurses (textmode) yast2 tools crashing. - #569000: yast2-ncurses-2.18.11-0.1.1: crash of yast -i with a segmentation fault
Had the update manager running this morning and it was in the install dpkg phase of the operation when the wonderful power grid I am on went down due to the thunderstorm we were having at the time. I was watching the update at the time the power failed and the install was not completed at the time the computer shut off. When power came back on and I restarted the computer, the log in screen came up only showing 1 and 1/2 of the 4 accounts I have on the computer. When I clicked on the one full account showing, nothing happened. After manually powering off at the tower button, and restarting, I was able to get a log in screen that was usable to log in.
I was even able to launch Firefox, although it is running extremely slow, and my audio properties will not come up and the pop down bar at the top that shows applications, places, etc, does not come down. Just overall, the whole computer does not run properly. Windows take forever to open, if at all, and forever to close, if at all, etc. Restart button does not work, etc. Is there any way to manually run update manager to re-install the parts that obviously are corrupt on the previous attempt at install? Or, is there anyway I can revert back to the status prior to the update attempt?
I am updating the Nvidia packages and I always seem to get a problem updating Subprocess failed. Error: RPM failed: error: db3 error(-30987) from dbcursor->c_get: DB_PAGE_NOTFOUND: Requested page not found error: error(-30987) setting "libc.so.6()(64bit)" records from Requirename index error: db3 error(-30987) from dbcursor->c_get: DB_PAGE_NOTFOUND: Requested page not found error: error(-30987) getting "libc.so.6()(64bit)" records from Requirename index
having had problems with getting grub2 to work on dual HDD setup...despite the most excellent advice on the forum i took the plunge and installed 10.10 from update manager within 10.04..... bingo fixed grub and now have dual boot again. but the update manager and synaptic package don't work because of libedata-cal1.2-6 file that remains..following other advice on the forum Advice gratefully received, how can i force an unistall of this package
mark@studypc:~$ sudo apt-get -f remove Reading package lists... Done Building dependency tree Reading state information... Done
I am from India, and I tried to update my Ubuntu system today. Code: $sudo apt-get update The update failed because the connection to the India mirror timed out: Code: [URL] Could not connect to in.archive.ubuntu.com:80 (111.91.91.37). - connect (110: Connection timed out) I tried the update a few times, with the same result every time.
I had firestarter running at this time, and noticed that I would get new security events every time I tried an update. I checked the events list, and it turned out that the machine at the ip address 111.91.91.37 (the in.archive.ubuntu.com machine, to go by the above error message) had been trying to make connections to seemingly random ports on the machine every time I tried the update: see the attached screenshot. I then changed my repositories to the Main Server using Synaptic, and tried the update again (from the command-line). This time it worked without a hitch, and firestarter did not report any unwanted incoming connection. why is the India mirror trying to open connections that the Main server apparently does not need in order for me to do the update? Should I (we) be concerned?
Cannot access installation media [URL] (Medium1). Check whether the server is accessible File '/repodata/repomd.xml' not found on medium '[URL]'. This has been happening whenever I try to update the system, install new packages from software.openSUSE.org or from Software Management. I installed openSUSE to test while I repaired another system, I'm more familiar with Debian. I've been checking any offered additional repositories when I install software, this is probably my problem. How do I remove the "Death_Knight" profile from my repros and do I need to install another in it's place?
I'm unable to install updates and new packages. I receive messages such as the following:
W: Failed to fetch [URL] 404 Not Found [IP: 91.189.92.161 80] W: Failed to fetch [URL] 404 Not Found [IP: 91.189.92.161 80] W: Failed to fetch [URL] 404 Not Found [IP: 91.189.92.161 80]
I recently had windows vista taken off my hard drive and my partitions realigned to create more storage space on my hard drive. I don't now if this is related. I was able to install upgrades previously.
I keep getting the updates icon popping up asking me to install software that is either already installed (Adobe Flash Player 10.1) or something that fails when I actually try to install is but I am sure it is also already installed (RPM Fusion Repository Config -free and nonfree). When I try to install the RPM Fusion packages it asked me for a Software Signature and then fails with the following message: failed to install signature: Traceback
[code]...
I have the flash player installed already and I am sure I already installed RPM Fusion. how can I resolve this and stop it from constantly asking me to install these packages?
I'm trying get updates from update manager and it says "the upgrade needs a total of 498M free space on disk '/'. Please free at least an additional 495M of disk space on '/'. Empty your trash and remove temporary packages of former installations using 'sudo apt-get clean'." I ran sudo apt-get clean n it did nothing.