Re: [Wlug] APT install question
Hmmm weird. I just tried to install cpufrequtils on my box and I didn't run into that problem. Sounds like a fluke to me. Try deleting the package from the cache '/var/cache/apt/archives' and reinstalling as Aaron detailed. I ran Kubuntu for a bit and switched back to Ubuntu as I find the integration is much better. But under the hood they should be the same system. When I was running Kubuntu I did find that it already had a cpufreq tool built into its power management. cpufrequtils is in universe and would be an add on. I know Ubuntu's Gnome package manager, Synaptic, has a "fix broken packages" option which may also fix this problem. Perhaps Adapt has something similar. *Ubuntu also has smart if you are familiar with that. sudo apt-get install smart-pm ~Mike
On Sat, 2006-12-30 at 07:11 -0500, Aaron Haviland wrote:
Andy Stewart wrote, on Dec 29, 2006 at 21:49 EST:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
HI gang,
I'm taking my first adventurous steps in the use of a Debian based system (Kubuntu) on my new laptop (LC2464T). (No, I'm not trashing Suse on all of my other systems). I've never previously used an APT based system, so in this sense, I'm quite the newbie.
I wouldn't suggest *Ubuntu as a canonical APT-based distro. There are still bugs there but the eye candy is better.
I'm getting an error when I install a package, and I'm not sure how to resolve it. I've googled to no avail. Note in the output below that it says that the file /etc/init.d/cpufrequtils does not exist, and yet (I think) this is a file that belongs to the package which I'm trying to install.
Indeed it should be part of the package you're trying to install. Could you verify that the files does exist? By this point in the installation, the package is fully extracted, just not configured.
A quick & dirty version of the dpkg installation procedure (APT is a front-end to dpkg/wget/etc) is:
1) Extract control information from the package. (You can find this stuff in /var/lib/dpkg/info/${PACKAGE}.*
2) Execute pre-install script, if it exists
3) Extract package.
4) Run post-install script, if it exists. (I think almost all packages have one)
5) ...
6) Profit!
<snipped ...>
Get:2 http://us.archive.ubuntu.com edgy/universe cpufrequtils 002-1 [22.4kB] Fetched 32.7kB in 1s (31.8kB/s)
Selecting previously deselected package cpufrequtils.
1, 2
3
Unpacking cpufrequtils (from .../cpufrequtils_002-1_amd64.deb) ...
4
Setting up cpufrequtils (002-1) ... update-rc.d: /etc/init.d/cpufrequtils: file does not exist dpkg: error processing cpufrequtils (--configure): subprocess post-installation script returned error exit status 1 Errors were encountered while processing: cpufrequtils E: Sub-process /usr/bin/dpkg returned an error code (1) ==========
So at this point, the package should be completely extracted, but the postinstall is not processing correctly... the command it's trying to execute would be: "update-rc.d cpufrequtils defaults" to add the default init rc symlinks...
It might be a bug in the package. It might be a fluke. Usually, try re-installing it (as you won't be able to do much else until you get it resolved, anyway...)
apt-get install --reinstall cpufrequtils
If not... good luck figuring out ubuntu's bug system. Debian's is quite nice, but if you've got a ubuntu bug, you *have* to use ubuntu's BTS instead. (And it appears there are no current bugs filed for ubuntu's cpufrequtils. Interestingly enough, Debian's BTS lists several bugs against the package, but none seemingly related to your problem.)
Hmmm... also, how long ago did this happen? Ubuntu doesn't seem to have 002-1 in its archives anymore. The current version is 002-2.
I don't know if you're using a front-end to APT, or taking it plain, but you might need to run "apt-get update" to refresh the package lists.
That was a bit longer than I meant it to be... good luck!
Alternatively, Some friends of mine in #linuxhelp on OFTC are usually around to help. I'm in there as 'guinea-pig'
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Mike Perry wrote:
Hmmm weird. I just tried to install cpufrequtils on my box and I didn't run into that problem. Sounds like a fluke to me. Try deleting the package from the cache '/var/cache/apt/archives' and reinstalling as Aaron detailed.
HI guys, Thanks for the helpful suggestions. 1) I have modified my /etc/apt/sources.list - it is not the standard one from Kubuntu. Most of what I wanted to install couldn't be found with the standard list, so I updated it with some automated website I found via google. 2) I deleted the package from the /var/cache/apt/archives directory and attempted a reinstall after I ran apt-get update. Version 002-1 was downloaded and the problem recurred. 3) I googled for "cpufrequtils debian" and found version 002-2 of the package, which I manually downloaded and installed. It noticed the missing /etc/init.d/cpufrequtils file and it asked me if I wanted to install a new one. I did, and now all seems to be fixed. 4) When I apt-get remove the cpufrequtils package, it does not delete the /etc/init.d/cpufrequtils file - this is strange - I expected it to delete any/all files related to the package. This is true in both versions of the package.
I ran Kubuntu for a bit and switched back to Ubuntu as I find the integration is much better. But under the hood they should be the same system. When I was running Kubuntu I did find that it already had a cpufreq tool built into its power management. cpufrequtils is in universe and would be an add on.
I prefer KDE over Gnome and that's why I'm giving Kubuntu a test drive. I've gotten very used to the GUI based sysadmin tools as supplied by SuSE (which I've used for many years). I'm looking for equivalents in *Ubuntu for such things like SCPM (profile management).
I know Ubuntu's Gnome package manager, Synaptic, has a "fix broken packages" option which may also fix this problem. Perhaps Adapt has something similar.
*Ubuntu also has smart if you are familiar with that. sudo apt-get install smart-pm
I have used the smart package manager on SuSE (when the badly broke YaST on OpenSuSE 10.1). I like it but didn't know the package name for *Ubuntu. I have been using the Adept package manager, but I"ll install Smart and give it a try. Thanks again for the help! Andy - -- Andy Stewart, Founder Worcester Linux Users' Group Worcester, MA, USA http://www.wlug.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFFlqI+Hl0iXDssISsRAplYAJ9LF33lyx8RHqLuqCwwHA8aOKlBUACffrL0 l56gjny+kycTVCJ5w8oBMqY= =8365 -----END PGP SIGNATURE-----
Andy Stewart wrote:
I prefer KDE over Gnome and that's why I'm giving Kubuntu a test drive.
I prefer KDE over Gnome, too, and what I've done with 'buntu is install the basic Ubuntu, and then add kde through apt-get. I seem to recall that doing it this way is one of the ways to enable the root account. (I could be wrong on that - it's been awhile.)
I have used the smart package manager on SuSE (when the badly broke YaST on OpenSuSE 10.1). I like it but didn't know the package name for *Ubuntu. I have been using the Adept package manager, but I"ll install Smart and give it a try.
To find package names: sudo apt-cache search <keyword> Have fun! Greg
--- Gregory Avedissian <gma2006@verizon.net> wrote:
sudo apt-cache search <keyword>
No need for the sudo, apt-cache only reads the database, so it doesn't need to be root. --Andre __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Andy Stewart wrote, on Dec 30, 2006 at 12:30 EST:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Mike Perry wrote:
Hmmm weird. I just tried to install cpufrequtils on my box and I didn't run into that problem. Sounds like a fluke to me. Try deleting the package from the cache '/var/cache/apt/archives' and reinstalling as Aaron detailed.
HI guys,
Thanks for the helpful suggestions.
1) I have modified my /etc/apt/sources.list - it is not the standard one from Kubuntu. Most of what I wanted to install couldn't be found with the standard list, so I updated it with some automated website I found via google.
It might be worth it to track down which archive the package is being downloaded from... you won't know where to send a bug report to otherwise!
2) I deleted the package from the /var/cache/apt/archives directory and attempted a reinstall after I ran apt-get update. Version 002-1 was downloaded and the problem recurred.
3) I googled for "cpufrequtils debian" and found version 002-2 of the package, which I manually downloaded and installed. It noticed the missing /etc/init.d/cpufrequtils file and it asked me if I wanted to install a new one. I did, and now all seems to be fixed.
4) When I apt-get remove the cpufrequtils package, it does not delete the /etc/init.d/cpufrequtils file - this is strange - I expected it to delete any/all files related to the package. This is true in both versions of the package.
dpkg allows for various states of package removal. Just removing the package will not touch conffiles (or is it config files? There's a distinction between the two terms). If you "apt-get remove --purge $PACKAGE" the package it will delete those as well. If you've already removed it, you must run "dpkg --purge $PACKAGE" to purge the conffiles (or is it config files?) as APT will complain that the package is already removed. -- Aaron Haviland cell: [617] 947 - 3629
--- Andy Stewart <andystewart@comcast.net> wrote:
1) I have modified my /etc/apt/sources.list - it is not the standard one from Kubuntu. Most of what I wanted to install couldn't be found with the standard list, so I updated it with some automated website I found via google.
What's missing? Kubuntu should have almost everything other than a few non-free codecs.
3) I googled for "cpufrequtils debian" and found version 002-2 of the package, which I manually downloaded and installed. It noticed the missing /etc/init.d/cpufrequtils file and it asked me if I wanted to install a new one. I did, and now all seems to be fixed.
For future reference, http://packages.ubuntu.com/cpufrequtils Note that mixing and matching packages from Debian and Ubuntu won't always work. --Andre __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
participants (5)
-
Aaron Haviland
-
Andre Lehovich
-
Andy Stewart
-
Gregory Avedissian
-
Mike Perry