-----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'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. Any and all help would be greatly appreciated - thanks! Here's the command and its output from Kubuntu 6.10. ========== # apt-get install cpufrequtils Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libcpufreq0 The following NEW packages will be installed: cpufrequtils libcpufreq0 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 32.7kB of archives. After unpacking 254kB of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 http://us.archive.ubuntu.com edgy/universe libcpufreq0 002-1 [10.3kB] 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 libcpufreq0. (Reading database ... 88398 files and directories currently installed.) Unpacking libcpufreq0 (from .../libcpufreq0_002-1_amd64.deb) ... Selecting previously deselected package cpufrequtils. Unpacking cpufrequtils (from .../cpufrequtils_002-1_amd64.deb) ... Setting up libcpufreq0 (002-1) ... 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) ========== - -- 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 iD8DBQFFldO9Hl0iXDssISsRAq1gAJ46+gxWgO9YomxhdJsp0i02GG30XgCfTll1 k584/OlsBqwCFII50BVox90= =VxI2 -----END PGP SIGNATURE-----
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' -- Aaron Haviland
participants (2)
-
Aaron Haviland
-
Andy Stewart