Linux - NewbieThis 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.
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.
** Then I typed
make
** again and this is what was echoed back:
gcc -Wmissing-prototypes -Wall -O2 -g -DLINUX -DHAS_STDINT_H -DHAS_INTTYPES_H -DFEAT_READLINE=1 -c client.c
client.c:44:31: error: readline/readline.h: No such file or directory
client.c:45:30: error: readline/history.h: No such file or directory
client.c: In function ‘read_line’:
client.c:117: warning: implicit declaration of function ‘readline’
client.c:117: warning: assignment makes pointer from integer without a cast
client.c:124: warning: implicit declaration of function ‘add_history’
make: *** [client.o] Error 1
** Then I typed
sudo make install
** and this is what I got back:
gcc -Wmissing-prototypes -Wall -O2 -g -DLINUX -DHAS_STDINT_H -DHAS_INTTYPES_H -DFEAT_READLINE=1 -c client.c
client.c:44:31: error: readline/readline.h: No such file or directory
client.c:45:30: error: readline/history.h: No such file or directory
client.c: In function ‘read_line’:
client.c:117: warning: implicit declaration of function ‘readline’
client.c:117: warning: assignment makes pointer from integer without a cast
client.c:124: warning: implicit declaration of function ‘add_history’
make: *** [client.o] Error 1
** I am pretty sure that something did not go right with the installation. Can anyone please help. Thanks
Chrony is available to Kubuntu from the Universal repository. If you have an internet connection, and the repository enabled, just open Konsole (Terminal Program) and input:
** Yes, I tried letting Adept go and install Chrony. However, ran into problems with some of the files that should have been installed (like the password to get chronyd to run etc.). Also when I looked into the documents that came after the sudo apt-get install chrony command it said that stuff would be generated after installed. Not sure what that means. But still I think that it should be able to install it from the source code (I think that is what the .gz file is called that I downloaded). Have no idea why the installation does not work though. Thanks for the suggestion and I will play around with that some more and please let me know if you come up with anything else. Thanks.
** OK, I will try that and see what happens. But you are saying that there is no program that I can open up in the background? And then how do I know that it is actually working? Thanks.
** Ok, I wanted to start over fresh so I typed
sudo aptitude remove chrony
** And this is what happened
| klw1026 ~ > sudo aptitude remove chrony
[sudo] password for klw1026:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following packages will be REMOVED:
chrony
0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 819kB will be freed.
Writing extended state information... Done
(Reading database ... 210440 files and directories currently installed.)
Removing chrony ...
invoke-rc.d: unknown initscript, /etc/init.d/chrony not found.
dpkg: error processing chrony (--remove):
subprocess pre-removal script returned error exit status 100
update-rc.d: /etc/init.d/chrony: file does not exist
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
chrony
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
** So then I typed
sudo apt-get install chrony
** and this is what happened
| klw1026 ~ > sudo apt-get install chrony
Reading package lists... Done
Building dependency tree
Reading state information... Done
chrony is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up chrony (1.21z-5) ...
update-rc.d: /etc/init.d/chrony: file does not exist
dpkg: error processing chrony (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
chrony
E: Sub-process /usr/bin/dpkg returned an error code (1)
** This led me to believe that aptitude did not remvoe the program completely, so I again typed
sudo aptitude remove chrony
** and it echoed back
| klw1026 ~ > sudo aptitude remove chrony
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
The following packages will be REMOVED:
chrony
0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 819kB will be freed.
Writing extended state information... Done
(Reading database ... 210440 files and directories currently installed.)
Removing chrony ...
invoke-rc.d: unknown initscript, /etc/init.d/chrony not found.
dpkg: error processing chrony (--remove):
subprocess pre-removal script returned error exit status 100
update-rc.d: /etc/init.d/chrony: file does not exist
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
chrony
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
** Now, I think that I have half of a chrony program and that will mess up any new installation. To make matters worse I have no clue what to do next. HELP!!!
** So, I was looking closely at what it was saying in the shell after I ran the sudo aptitude removall command and noticed that it was looking for a file in the /etc/init.d/chrony directory. So I, from the shell, opened up kate (well sudo kate) and simply saved a blank document to that location. Then I ran the sudo aptitude command again and it appears to have deleted chrony. So now I really have no idea what is going on. Why would this allow for removal, it was just a blank document?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.