LINUX LITE 7.2 FINAL RELEASED - SEE RELEASE ANNOUNCEMENTS SECTION FOR DETAILS


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
dpkg error when trying to install any new packages
#3
I'll take a stab at this, but you should know ahead of time -- I had never even known of the existence of "Triggers" until your post.

Did some searching and reading and don't think I should even attempt to explain, because I don't fully understand everything myself.  Here is best reference I found on the triggers file:  https://lists.debian.org/debian-dpkg/200...00076.html.  You can have a look at that to get an idea of what it's for.

Before proceeding, back-up anything important on your LL installation just in case all goes wrong.  I don't think below instructions will bork system, but who knows?

The directory you listed above was from /var/lib/dpkg/triggers (not /usr/bin/dpkg/triggers).  Compare your 2nd line for "File" to mine below.
Code:
bill@Gold:/var/lib/dpkg/triggers$ ls -l
total 40
-rw-r--r-- 1 root root   20 Apr 17 20:01 aspell-autobuildhash
-rw-r--r-- 1 root root 1799 May 25 14:16 File
-rw-r--r-- 1 root root   20 Apr 17 20:01 ispell-autobuildhash
-rw-r--r-- 1 root root    9 Apr 17 19:46 ldconfig
-rw------- 1 root root    0 Jun  3 17:20 Lock
-rw-r--r-- 1 root root   15 Apr 18 23:05 pysupport
-rw-r--r-- 1 root root    0 Jun  3 17:20 Unincorp
-rw-r--r-- 1 root root   16 Apr 17 20:00 update-ca-certificates
-rw-r--r-- 1 root root   16 Apr 17 20:00 update-ca-certificates-fresh
-rw-r--r-- 1 root root   20 Apr 17 20:01 update-default-ispell
-rw-r--r-- 1 root root   20 Apr 17 20:01 update-default-wordlist
-rw-r--r-- 1 root root   16 May 13 00:19 update-initramfs

You'll notice that yours has different permissions and I have no idea what the numbers are on yours where it should show as "root  root" for owner and group columns.

I opened the "File" file with leafpad to see what's in it.  (I don't think you'll be able to open yours, but you can try with leafpad /var/lib/dpkg/triggers/File to see what happens.)  Here is what it looks like on my machine:
Code:
/usr/lib/mime/packages mime-support/noawait
/usr/share/applications mime-support/noawait
/etc/init ureadahead
/etc/init.d ureadahead
/usr/lib/x86_64-linux-gnu/gio/modules libglib2.0-0:amd64
/usr/lib/gio/modules libglib2.0-0:amd64
/usr/share/glib-2.0/schemas libglib2.0-0:amd64
/etc/sgml sgml-base
/usr/share/mime/packages shared-mime-info
/usr/share/info install-info/noawait
/usr/man man-db/noawait
/usr/share/man man-db/noawait
/usr/local/man man-db/noawait
/usr/local/share/man man-db/noawait
/usr/X11R6/man man-db/noawait
/opt/man man-db/noawait
/etc/lsb-release plymouth-theme-ubuntu-text
/etc/ufw/applications.d ufw
/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders libgdk-pixbuf2.0-0:amd64
/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders libgdk-pixbuf2.0-0:amd64
/usr/share/fonts fontconfig
/usr/share/ghostscript/fonts fontconfig
/usr/share/texmf/fonts fontconfig
/usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules libgtk-3-0:amd64/noawait
/usr/lib/gtk-3.0/3.0.0/immodules libgtk-3-0:amd64/noawait
/usr/share/package-data-downloads update-notifier-common
/usr/share/applications gnome-menus/noawait
/usr/share/icons/hicolor hicolor-icon-theme
/usr/share/icons/gnome gnome-icon-theme
/usr/share/cups/ppd-updaters cups
/usr/share/applications desktop-file-utils
/usr/share/gconf/defaults gconf2
/usr/share/gconf/mandatory gconf2
/usr/share/gconf/schemas gconf2
/usr/share/GConf/gsettings gconf2
/usr/share/menu menu
/usr/lib/menu menu
/etc/menu-methods menu
/lib/udev/hwdb.d udev/noawait
/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules libgtk2.0-0:amd64/noawait
/usr/lib/gtk-2.0/2.10.0/immodules libgtk2.0-0:amd64/noawait
/usr/lib/libreoffice/share/extensions libreoffice-common
/usr/lib/vlc/plugins vlc-nox
/usr/share/slib guile-2.0-libs
/usr/share/app-install/desktop lubuntu-software-center

I then opened a live Linux Lite ISO in VirtualBox and looked to see what the file looked like there.  Here it is:
Code:
/usr/lib/mime/packages mime-support/noawait
/usr/share/applications mime-support/noawait
/etc/init ureadahead
/etc/init.d ureadahead
/usr/lib/x86_64-linux-gnu/gio/modules libglib2.0-0:amd64
/usr/lib/gio/modules libglib2.0-0:amd64
/usr/share/glib-2.0/schemas libglib2.0-0:amd64
/etc/sgml sgml-base
/usr/share/mime/packages shared-mime-info
/usr/share/info install-info/noawait
/usr/man man-db/noawait
/usr/share/man man-db/noawait
/usr/local/man man-db/noawait
/usr/local/share/man man-db/noawait
/usr/X11R6/man man-db/noawait
/opt/man man-db/noawait
/etc/lsb-release plymouth-theme-ubuntu-text
/etc/ufw/applications.d ufw
/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders libgdk-pixbuf2.0-0:amd64
/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders libgdk-pixbuf2.0-0:amd64
/usr/share/fonts fontconfig
/usr/share/ghostscript/fonts fontconfig
/usr/share/texmf/fonts fontconfig
/usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules libgtk-3-0:amd64/noawait
/usr/lib/gtk-3.0/3.0.0/immodules libgtk-3-0:amd64/noawait
/usr/share/package-data-downloads update-notifier-common
/usr/share/applications gnome-menus/noawait
/usr/share/icons/hicolor hicolor-icon-theme
/usr/share/icons/gnome gnome-icon-theme
/usr/share/cups/ppd-updaters cups
/usr/share/applications desktop-file-utils
/usr/share/gconf/defaults gconf2
/usr/share/gconf/mandatory gconf2
/usr/share/gconf/schemas gconf2
/usr/share/GConf/gsettings gconf2
/usr/share/menu menu
/usr/lib/menu menu
/etc/menu-methods menu
/lib/udev/hwdb.d udev/noawait
/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules libgtk2.0-0:amd64/noawait
/usr/lib/gtk-2.0/2.10.0/immodules libgtk2.0-0:amd64/noawait
/usr/lib/libreoffice/share/extensions libreoffice-common
/usr/lib/vlc/plugins vlc-nox

Everything is the same except my installed system has two extra lines on the end that deal with software I put on my machine.

Therefore, my guess is that you can boot with the LL 2.0 DVD and replace your bad "File" file with the one on the DVD.  If you haven't installed a lot of extra software on your system, my guess is that doing so may solve your problem.  From my limited understanding of the triggers file, not every piece of software uses it or adds a line to it, so even if you've installed some other software, I think there's a good chance using the one from the live DVD will work.  (That's my guess!  Can't guarantee anything.)  I've installed quite a few extra programs on my system and there are only those two extra lines in the "File" file.  One was created when I installed the Lubuntu Software Center and I have no idea which package caused the other line; but, clearly, extra lines are rarely added to the file.

Here are the steps if you want to try my suggestion:

1. -- Boot live LL disk and open a terminal

2. -- If you don't know which partition on your disk is the LL root partition, run following command:
Code:
sudo os-prober

Find the /dev/sda? that shows up for your installed Mint and use that in the next command.

3. -- Mount the installed root partition to /mnt
Code:
sudo mount /dev/sda? /mnt
(Substitute your partition number where "?" is.)

4. -- Make a backup copy of the current "File" file:
Code:
sudo cp /mnt/var/lib/dpkg/triggers/File /mnt/var/lib/dpkg/triggers/File.bak

5. -- Now, replace the bad "File" file on your system with the one from the live DVD:
Code:
sudo cp --preserve /var/lib/dpkg/triggers/File /mnt/var/lib/dpkg/triggers/File

6. -- List the contents of the triggers directory (on installed system) and look at the permissions and ownership:
Code:
cd /mnt/var/lib/dpkg/triggers && ls -l

7. -- If permissions don't look same as the others and ownership doesn't say "root    root", then you'll need to make adjustments.
  • To set correct ownership:  sudo chown root: File
  • To set correct permissions: sudo chmod 0644 File
  • If that doesn't work from live DVD for some reason, then do it from your installed system when you boot back up into it.
    • [li]Make sure you cd into the directory first:  cd /var/lib/dpkg/triggers
    • Then execute one or both of the commands above, depending on what's needed
8. -- Exit terminal, shutdown and reboot into your installed LL.

9. -- Back in installed LL, now run this (assuming you made permissions and ownership adjustments noted above):
Code:
sudo apt-get update

10. -- Try to install some program to see if you still get error.  (Don't try banshee again for now.  Try something else first, like radiotray -- a small internet radio player application -- or anything else you may have in mind.)
Code:
sudo apt-get install radiotray

11. -- If test application installed without issue, go ahead and try banshee again.  If it breaks something again, let us know.


That's it.  Hopefully that ends up working.
Try Linux Beginner Search Engine for answers to Linux questions.
Reply


Messages In This Thread
dpkg error when trying to install any new packages - by brewerz - 06-04-2014, 02:33 AM
Re: dpkg error when trying to install any new packages - by brewerz - 06-04-2014, 01:09 PM
Re: dpkg error when trying to install any new packages - by gold_finger - 06-04-2014, 06:28 PM
Re: dpkg error when trying to install any new packages - by brewerz - 06-05-2014, 03:13 PM
Re: dpkg error when trying to install any new packages - by brewerz - 06-05-2014, 03:57 PM
Re: dpkg error when trying to install any new packages - by brewerz - 06-05-2014, 07:04 PM
Re: dpkg error when trying to install any new packages - by brewerz - 06-06-2014, 03:48 PM
Re: dpkg error when trying to install any new packages - by brewerz - 06-06-2014, 06:34 PM
Re: dpkg error when trying to install any new packages - by brewerz - 06-06-2014, 11:30 PM
Re: dpkg error when trying to install any new packages - by brewerz - 06-09-2014, 02:02 PM

Forum Jump:


Users browsing this thread: 6 Guest(s)