apt-get problems

Asked by David Tilbrook

I seem to have lost FvwmPager. Is was working, but then, in an attempt to get
font packages to load, I removed a number of packages, which might have led
to FvwmPager becoming non-functional.

So a serices of questions:

Q. How do I determine what package installed a specific file?

Q. When http://packages.ubuntu.com/search... lists a package, why then does
     apt-get not find them? Is there some qualification that I need to specify?

Q. My Ubuntu release 10 has over 2700 fonts, where as my Ubunu release 12
     has 1100. What packages delivers a comprehensive fonts package?

Q. Is there a tutorial web site on apt-get use. The apt-get man page presents a
     plethora of options, but not a background on general use. apt-get reports
     problems, but the suggested apt-get -f install does not appear to resolve
     my problems.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

https://wiki.ubuntu.com/Fonts

Could copy the TTF files.

Revision history for this message
David Tilbrook (dmtilbrook) said :
#2

I seem to have corrupted the apt-get universe.

% apt-get check
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 grub-pc-bin : Depends: grub-common (= 1.99-21ubuntu3.1) but 1.99-21ubuntu3 is installed
 grub2-common : Depends: grub-common (= 1.99-21ubuntu3.1) but 1.99-21ubuntu3 is installed
E: Unmet dependencies. Try using -f.

root: aptget -f install
No command 'aptget' found, did you mean:
 Command 'apt-get' from package 'apt' (main)
aptget: command not found
1.17 phelix(linux3i) /etc/fonts/conf.d
root: apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  grub-common
Suggested packages:
  multiboot-doc grub-emu xorriso desktop-base
The following packages will be upgraded:
  grub-common
1 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
4 not fully installed or removed.
Need to get 0 B/2095 kB of archives.
After this operation, 65.5 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 94080 files and directories currently installed.)
Preparing to replace grub-common 1.99-21ubuntu3 (using .../grub-common_1.99-21ubuntu3.1_i386.deb) ...
invoke-rc.d: not a symlink: "/etc/rc2.d/S99grub-common"
invoke-rc.d: dangling symlink: "/etc/rc2.d/S99grub-common"
dpkg: warning: subprocess old pre-removal script returned error exit status 102
dpkg - trying script from the new package instead ...
invoke-rc.d: not a symlink: "/etc/rc2.d/S99grub-common"
invoke-rc.d: dangling symlink: "/etc/rc2.d/S99grub-common"
dpkg: error processing /var/cache/apt/archives/grub-common_1.99-21ubuntu3.1_i386.deb (--unpack):
 subprocess new pre-removal script returned error exit status 102
invoke-rc.d: not a symlink: "/etc/rc2.d/S99grub-common"
invoke-rc.d: dangling symlink: "/etc/rc2.d/S99grub-common"
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 102
Errors were encountered while processing:
 /var/cache/apt/archives/grub-common_1.99-21ubuntu3.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
1.18 phelix(linux3i) /etc/fonts/conf.d

root: apt-get install grub-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  multiboot-doc grub-emu xorriso desktop-base
The following packages will be upgraded:
  grub-common
1 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
4 not fully installed or removed.
Need to get 0 B/2095 kB of archives.
After this operation, 65.5 kB disk space will be freed.
(Reading database ... 94080 files and directories currently installed.)
Preparing to replace grub-common 1.99-21ubuntu3 (using .../grub-common_1.99-21ubuntu3.1_i386.deb) ...
invoke-rc.d: not a symlink: "/etc/rc2.d/S99grub-common"
invoke-rc.d: dangling symlink: "/etc/rc2.d/S99grub-common"
dpkg: warning: subprocess old pre-removal script returned error exit status 102
dpkg - trying script from the new package instead ...
invoke-rc.d: not a symlink: "/etc/rc2.d/S99grub-common"
invoke-rc.d: dangling symlink: "/etc/rc2.d/S99grub-common"
dpkg: error processing /var/cache/apt/archives/grub-common_1.99-21ubuntu3.1_i386.deb (--unpack):
 subprocess new pre-removal script returned error exit status 102
invoke-rc.d: not a symlink: "/etc/rc2.d/S99grub-common"
invoke-rc.d: dangling symlink: "/etc/rc2.d/S99grub-common"
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 102
Errors were encountered while processing:
 /var/cache/apt/archives/grub-common_1.99-21ubuntu3.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
1.19 phelix(linux3i) /etc/fonts/conf.d

How do I resolve the problems with the grub-common package?

and get back to my original problem?

-- david

Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#3

could try:

sudo dpkg --force-all -i /var/cache/apt/archives/grub-common_1.99-21ubuntu3.1_i386.deb
sudo apt-get -f install

HTH

Revision history for this message
David Tilbrook (dmtilbrook) said :
#4

Tried it and got:

root: dpkg --force-all -i /var/cache/apt/archives/grub-common_1.99-21ubuntu3.1_i386.deb
(Reading database ... 94080 files and directories currently installed.)
Preparing to replace grub-common 1.99-21ubuntu3 (using .../grub-common_1.99-21ubuntu3.1_i386.deb) ...
invoke-rc.d: not a symlink: "/etc/rc2.d/S99grub-common"
invoke-rc.d: dangling symlink: "/etc/rc2.d/S99grub-common"
dpkg: warning: subprocess old pre-removal script returned error exit status 102
dpkg - trying script from the new package instead ...
invoke-rc.d: not a symlink: "/etc/rc2.d/S99grub-common"
invoke-rc.d: dangling symlink: "/etc/rc2.d/S99grub-common"
dpkg: error processing /var/cache/apt/archives/grub-common_1.99-21ubuntu3.1_i386.deb (--install):
 subprocess new pre-removal script returned error exit status 102
invoke-rc.d: not a symlink: "/etc/rc2.d/S99grub-common"
invoke-rc.d: dangling symlink: "/etc/rc2.d/S99grub-common"
dpkg: error while cleaning up:
 subprocess installed post-installation script returned error exit status 102
Errors were encountered while processing:
 /var/cache/apt/archives/grub-common_1.99-21ubuntu3.1_i386.deb

Is there something that should be done about:
invoke-rc.d: not a symlink: "/etc/rc2.d/S99grub-common"
invoke-rc.d: dangling symlink: "/etc/rc2.d/S99grub-common"

So problem persists.

-- david

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

All I can suggest is report a bug

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#6

BTW you can find the package that installed a particular file with:

dpkg -S filename