![]() |
dpkg error when trying to install any new packages - Printable Version +- Linux Lite Forums (https://www.linuxliteos.com/forums) +-- Forum: Software - Support (https://www.linuxliteos.com/forums/forumdisplay.php?fid=5) +--- Forum: Installing Software (https://www.linuxliteos.com/forums/forumdisplay.php?fid=18) +--- Thread: dpkg error when trying to install any new packages (/showthread.php?tid=393) Pages:
1
2
|
dpkg error when trying to install any new packages - brewerz - 06-04-2014 Hey guys, I've been running Linux Lite 2.0 for a few weeks now and it has been great. Today, I tried to install Banshee and got the following. It is now appearing when trying to install any new packages: unable to read file triggers file `/var/lib/dpkg/triggers/File': No such device or address E: Sub-process /usr/bin/dpkg returned an error code (2) Here are the contents of the /usr/bin/dpkg/triggers directory: -rw-r--r-- 1 root root 20 Apr 17 19:12 aspell-autobuildhash s-ws--sr-- 1 3435973836 3435973836 0 Oct 12 1942 File -rw-r--r-- 1 root root 20 Apr 17 19:12 ispell-autobuildhash -rw-r--r-- 1 root root 9 Apr 17 18:47 ldconfig -rw------- 1 root root 0 May 25 08:49 Lock -rw-r--r-- 1 root root 15 Apr 18 01:38 pysupport -rw-r--r-- 1 root root 0 May 25 08:49 Unincorp -rw-r--r-- 1 root root 16 Apr 17 19:11 update-ca-certificates -rw-r--r-- 1 root root 16 Apr 17 19:11 update-ca-certificates-fresh -rw-r--r-- 1 root root 20 Apr 17 19:12 update-default-ispell -rw-r--r-- 1 root root 20 Apr 17 19:12 update-default-wordlist -rw-r--r-- 1 root root 16 May 13 08:11 update-initramfs Any guidance would be appreciated. Thanks. Re: dpkg error when trying to install any new packages - brewerz - 06-04-2014 I just booted to the menu and ran a CLEAN and Fix Packages. Same error. I get the error when I run Install Updates too. It occurs both from the command line and from the Synaptic Package Manager. Re: dpkg error when trying to install any new packages - gold_finger - 06-04-2014 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/2007/04/msg00076.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 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 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 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 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.
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. Re: dpkg error when trying to install any new packages - brewerz - 06-05-2014 First, thanks for all the info! I really appreciate the informational response. I tried a shortcut by copying "/dev/null >" to a new blank "File" file, then used vi to copy the default Linux Lite "File" text that you posted. Now, the "File" looks better: -rw-r--r-- 1 root root 1713 Jun 5 07:12 File Now I am getting a different error when I try to install updates or banshee: dpkg: warning: files list file for package 'software-properties-gtk' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'multiarch-support' missing; assuming package has no files currently installed dpkg: unrecoverable fatal error, aborting: unable to open files list file for package `guile-2.0-libs': No such device or address E: Sub-process /usr/bin/dpkg returned an error code (2) I haven't rebooted the OS yet... not sure if it will do anything, but that's my next step. Re: dpkg error when trying to install any new packages - brewerz - 06-05-2014 Same error... dpkg: warning: files list file for package 'software-properties-gtk' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'multiarch-support' missing; assuming package has no files currently installed dpkg: unrecoverable fatal error, aborting: unable to open files list file for package `guile-2.0-libs': No such device or address E: Sub-process /usr/bin/dpkg returned an error code (2) Re: dpkg error when trying to install any new packages - gold_finger - 06-05-2014 I'm not really sure what to recommend since this is all new to me too. One thing I failed to mention that might be part of problem is that my posted File is for the 64-bit version of LL 2.0. If your installed version is 32-bit, try again with live DVD and copy file from it instead of using mine. Other than that, I'm guessing that some of the software you put on the system added lines to the "File" file that aren't present by default and those are the ones it's now complaining about being missing. My thought is to try recreating your setup in a VM, then compare the resulting "File" file with the standard one. Take the lines that aren't part of the standard file and just add them to your installed system file. Have no idea if we're on the right track with that, but can give it a shot and see. Let me know which version (32 or 64-bit) your on and what additional programs (if any) were installed to it before the banshee install problem. I'll try to recreate your setup in a VM, save a copy of the "File" file, then try installing banshee to see if it breaks anything. (If you want to try something similar to get a look at a possible "File" file, just run your live DVD, install same additional programs, then open the file to see what lines might have been added.) Worst case scenario -- you might need to re-install Re: dpkg error when trying to install any new packages - brewerz - 06-05-2014 Great idea. I am running the 32-bit version on a Toshiba netbook. I installed several of the apps from the new "Install Additional Software" green screen including Netflix, Chrome, the game pack, Skype, Wine, etc. I also installed F.lux. Probably the most involved thing is that I installed the 32-bit Citrix ICA Receiver, which I have working in Firefox. I don't want to have to take a lot of your time on this. I will see about installing in a VM and then comparing the "File" file with what I have copied from your 64-bit version. Worst case, I will reinstall. Re: dpkg error when trying to install any new packages - gold_finger - 06-05-2014 I'm guessing that if you set up your VM with same programs you added to the installed one, you'll end up with the correct "File" file that you need. So once VM all set just copy off to a USB the VM's /var/lib/dpkg/triggers/File. Then just put it on your installed system. If system still won't work right, then maybe there's more wrong with it than we thought. Probably easiest at that point to just re-install. Make backups of any config files you don't want to have to re-create and your data files, then just restore them into the new install. Good luck. Let us know how it goes. Re: dpkg error when trying to install any new packages - brewerz - 06-06-2014 So, I tried the newly installed "File" file and got the same error: dpkg: warning: files list file for package 'software-properties-gtk' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'multiarch-support' missing; assuming package has no files currently installed dpkg: unrecoverable fatal error, aborting: unable to open files list file for package `guile-2.0-libs': No such device or address E: Sub-process /usr/bin/dpkg returned an error code (2) I might be reinstalling or just living with it. I've been using this computer a lot for work so I might just live with it for now. The .ISO that I'm using is the Beta Linux Lite 2.0 that I downloaded on May 24. Do you know if the general release version 2.0 has many changes from the May 24 beta? Re: dpkg error when trying to install any new packages - gold_finger - 06-06-2014 (06-06-2014, 03:48 PM)brewerz link Wrote: So, I tried the newly installed "File" file and got the same error: I'm stumped for now. Googled a little more and found a post that might help: http://ubuntuforums.org/showthread.php?t=1154174&s=00874a6f6f511d1110611ad4f91b9b20&p=7250398#post7250398. Based on that post and your errors, have a look at one of the files that's giving the error message -- eg. software-properties-gtk. Try opening this file in leafpad text editor to see what's inside: Code: leafpad /var/lib/dpkg/info/software-properties-gtk.list Or, you can just display what's in it to the terminal screen with this command: Code: cat /var/lib/dpkg/info/software-properties-gtk.list Here's what mine looks like: Code: /. If yours looks corrupted, as described in linked post, then following those procedures might fix it. Wait until you have made necessary backups of important stuff and until you know you'll have time for a re-installation (if that becomes necessary) before attempting the fix. You don't want to accidentally bork the computer without being prepared for that possibility. (06-06-2014, 03:48 PM)brewerz link Wrote: The .ISO that I'm using is the Beta Linux Lite 2.0 that I downloaded on May 24. Do you know if the general release version 2.0 has many changes from the May 24 beta? Actually, I'm still using that same Beta version too. Don't know exactly what (or how much more) was added to final version. Valtam will have to answer that. |