Broken packages with no obvious solution

Questions about applications and software
Forum rules
Before you post please read how to get help

Broken packages with no obvious solution

Postby passemger on Fri Jan 15, 2010 1:57 am

Hi guys,
I wanted to install more recent version of Wine (I think it's still beta) which isn't in repository so I added new repository as stated here: http://www.winehq.org/download/deb . I uninstalled previous Wine (1.0.1) and tried to install one from new repository (1.2.x) it complained about some dependency problem (wine1.2) and didnt install anything, after which I installed wine1.2 with not problem but still couldn't install wine (which "depends" on it). I removed everything about the Wine and wanted to update using mintUpdate (icon in notification area). I got the following: "Could not apply changes! Fix broken packages first." At console while trying to install Wine it reported at the end: "E: Broken packages" but that's all, it didn't state what package is making problems. Last what I did (well I was trying advices in many posts I found on google with no success at all) was to try using "Edit -> Fix broken packages" in Synaptic but nothing happened ("Apply" button was still grayed out). I removed repository I added in rep list, reloaded packages list but still I cannot update using "mintUpdate" (it reports the same error which I cannot fix).
It's really frustrating, I returned to Linux after some time but after 4-5 days of using its "broken" at least package system.
Can someone please give me some advice on how to fix this problem or should I reinstall LinuxMint
passemger
Level 1
Level 1
 
Posts: 6
Joined: Fri Jan 15, 2010 1:30 am

Linux Mint is funded by ads and donations.
 

Re: Broken packages with no obvious solution

Postby mick55 on Fri Jan 15, 2010 2:50 am

Run these commands in terminal[Menu-->Terminal]

Run dpkg manually
Code: Select all
sudo dpkg --configure -a

Then run this to fix the broken install
Code: Select all
apt install -f

Then update your package list
Code: Select all
sudo apt-get update

Then run this to clean up any partial packages
Code: Select all
sudo apt-get autoclean

Then run this to clean up the apt cache
Code: Select all
sudo apt-get clean

Then run this to clean up any unneeded dependencies
Code: Select all
sudo apt-get autoremove


Let me know how it works out
mick
Things are more like they are now than they ever were before.

Dwight D. Eisenhower (1890 - 1969)
User avatar
mick55
Level 7
Level 7
 
Posts: 1507
Joined: Fri Sep 25, 2009 2:47 am

Re: Broken packages with no obvious solution

Postby passemger on Fri Jan 15, 2010 3:49 am

Code: Select all
$ sudo dpkg --configure -a

Code: Select all
$ apt install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.

Code: Select all
$ sudo apt-get update
Hit http://archive.ubuntu.com karmic Release.gpg
Ign http://archive.ubuntu.com karmic/main Translation-en_US                                                         
Hit http://security.ubuntu.com karmic-security Release.gpg                                                         
Ign http://security.ubuntu.com karmic-security/main Translation-en_US                                               
Hit http://archive.canonical.com karmic Release.gpg                                                                 
Ign http://archive.canonical.com karmic/partner Translation-en_US                                                   
Ign http://archive.ubuntu.com karmic/restricted Translation-en_US                                                   
Ign http://archive.ubuntu.com karmic/universe Translation-en_US                                                     
Ign http://archive.ubuntu.com karmic/multiverse Translation-en_US                                                   
Hit http://archive.ubuntu.com karmic-updates Release.gpg                                                           
Ign http://archive.ubuntu.com karmic-updates/main Translation-en_US                                                 
Ign http://archive.ubuntu.com karmic-updates/restricted Translation-en_US                                           
Hit http://packages.medibuntu.org karmic Release.gpg                                                               
Ign http://packages.medibuntu.org karmic/free Translation-en_US                                                     
Ign http://packages.medibuntu.org karmic/non-free Translation-en_US                                                 
Hit http://deb.opera.com stable Release.gpg                                                                         
Ign http://deb.opera.com stable/non-free Translation-en_US                                                       
Ign http://archive.ubuntu.com karmic-updates/universe Translation-en_US                                         
Ign http://archive.ubuntu.com karmic-updates/multiverse Translation-en_US                                       
Ign http://security.ubuntu.com karmic-security/restricted Translation-en_US                                         
Ign http://security.ubuntu.com karmic-security/universe Translation-en_US                                           
Ign http://security.ubuntu.com karmic-security/multiverse Translation-en_US                                         
Get:1 http://packages.linuxmint.com helena Release.gpg [198B]                                                       
Hit http://security.ubuntu.com karmic-security Release                                                             
Hit http://archive.ubuntu.com karmic Release                                                                       
Hit http://archive.canonical.com karmic Release                                                                     
Hit http://packages.medibuntu.org karmic Release                                                                   
Ign http://packages.linuxmint.com helena/main Translation-en_US                                                     
Ign http://packages.linuxmint.com helena/upstream Translation-en_US                       
Ign http://packages.linuxmint.com helena/import Translation-en_US                         
Hit http://archive.ubuntu.com karmic-updates Release                                                             
Hit http://deb.opera.com stable Release                                                                         
Hit http://security.ubuntu.com karmic-security/main Packages                                                     
Get:2 http://packages.linuxmint.com helena Release [7,251B]                               
Hit http://archive.ubuntu.com karmic/main Packages                                                                 
Hit http://archive.ubuntu.com karmic/restricted Packages                                                           
Hit http://archive.ubuntu.com karmic/universe Packages                                                             
Hit http://archive.ubuntu.com karmic/multiverse Packages                                                           
Hit http://archive.canonical.com karmic/partner Packages                                                           
Hit http://security.ubuntu.com karmic-security/restricted Packages                                                 
Hit http://security.ubuntu.com karmic-security/universe Packages                         
Hit http://security.ubuntu.com karmic-security/multiverse Packages                       
Hit http://packages.medibuntu.org karmic/free Packages                                   
Hit http://archive.ubuntu.com karmic-updates/main Packages                                                       
Hit http://packages.medibuntu.org karmic/non-free Packages                                 
Ign http://packages.linuxmint.com helena/main Packages                                     
Ign http://deb.opera.com stable/non-free Packages                                         
Hit http://archive.ubuntu.com karmic-updates/restricted Packages     
Hit http://archive.ubuntu.com karmic-updates/universe Packages                             
Hit http://archive.ubuntu.com karmic-updates/multiverse Packages                           
Ign http://packages.linuxmint.com helena/upstream Packages                                 
Ign http://packages.linuxmint.com helena/import Packages             
Ign http://deb.opera.com stable/non-free Packages                   
Ign http://packages.linuxmint.com helena/main Packages               
Hit http://deb.opera.com stable/non-free Packages                   
Ign http://packages.linuxmint.com helena/upstream Packages           
Hit http://archive.getdeb.net karmic-getdeb Release.gpg
Ign http://packages.linuxmint.com helena/import Packages
Ign http://archive.getdeb.net karmic-getdeb/games Translation-en_US
Ign http://archive.getdeb.net karmic-getdeb/apps Translation-en_US
Hit http://packages.linuxmint.com helena/main Packages
Hit http://archive.getdeb.net karmic-getdeb Release                           
Hit http://archive.getdeb.net karmic-getdeb/games Packages                     
Hit http://packages.linuxmint.com helena/upstream Packages
Hit http://archive.getdeb.net karmic-getdeb/apps Packages                     
Hit http://packages.linuxmint.com helena/import Packages                       
Fetched 7,449B in 1s (6,484B/s)                         
Reading package lists... Done

Code: Select all
$ sudo apt-get autoclean
Reading package lists... Done
Building dependency tree       
Reading state information... Done

Code: Select all
$ sudo apt-get clean

Code: Select all
$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.

Sorry for posting everything, but I thought it may be helpful if some repositories are making problems.
After these commands I tried to update packages using "mintUpdate" in notification area and it still reports: "Could not apply changes! Fix broken packages first."
passemger
Level 1
Level 1
 
Posts: 6
Joined: Fri Jan 15, 2010 1:30 am

Re: Broken packages with no obvious solution

Postby mick55 on Fri Jan 15, 2010 4:17 am

Maybe the logs can tell us something.
Run these commands in terminal[Menu-->Terminal]
and post the logs here
Code: Select all
gksudo gedit /var/log/dpkg.log

Code: Select all
gksudo gedit /var/log/apt/term.log

Since your problem started with wine perhaps we can do a forced remove of it.
Code: Select all
sudo apt-get remove --purge wine
Things are more like they are now than they ever were before.

Dwight D. Eisenhower (1890 - 1969)
User avatar
mick55
Level 7
Level 7
 
Posts: 1507
Joined: Fri Sep 25, 2009 2:47 am

Re: Broken packages with no obvious solution

Postby passemger on Fri Jan 15, 2010 4:32 am

gedit /var/log/dpkg.log
http://paste.ubuntu.com/356951/

gksudo gedit /var/log/apt/term.log
http://paste.ubuntu.com/356953/

Thanks for your effort Mick.
passemger
Level 1
Level 1
 
Posts: 6
Joined: Fri Jan 15, 2010 1:30 am

Re: Broken packages with no obvious solution

Postby mick55 on Fri Jan 15, 2010 4:49 am

Did you try to remove wine?

Code: Select all
sudo apt-get remove --purge wine

If that doesn't work try this command
Code: Select all
sudo apt-get --reinstall install wine

If that doesn't do it try this
Code: Select all
sudo dpkg --remove --force-remove-reinstreq wine
Things are more like they are now than they ever were before.

Dwight D. Eisenhower (1890 - 1969)
User avatar
mick55
Level 7
Level 7
 
Posts: 1507
Joined: Fri Sep 25, 2009 2:47 am

Re: Broken packages with no obvious solution

Postby passemger on Fri Jan 15, 2010 5:04 am

Code: Select all
$ sudo apt-get remove --purge wine
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  wine-gecko
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  wine*
0 upgraded, 0 newly installed, 1 to remove and 13 not upgraded.
After this operation, 55.8MB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 156662 files and directories currently installed.)
Removing wine ...
Purging configuration files for wine ...
Processing triggers for desktop-file-utils ...
Processing triggers for man-db ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

Code: Select all
$ sudo apt-get --reinstall install wine
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  wine
0 upgraded, 1 newly installed, 0 to remove and 13 not upgraded.
Need to get 7,552kB of archives.
After this operation, 55.8MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  wine
Authentication warning overridden.
Get:1 http://archive.ubuntu.com karmic/universe wine 1.0.1-0ubuntu8 [7,552kB]
Fetched 7,552kB in 10s (746kB/s)                                                                                   
Selecting previously deselected package wine.
(Reading database ... 156042 files and directories currently installed.)
Unpacking wine (from .../wine_1.0.1-0ubuntu8_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for desktop-file-utils ...
Setting up wine (1.0.1-0ubuntu8) ...
kernel.printk = 4 4 1 7
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.all.rp_filter = 1
net.ipv4.tcp_syncookies = 1
vm.mmap_min_addr = 0

Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

Code: Select all
$ sudo dpkg --remove --force-remove-reinstreq wine
(Reading database ... 156662 files and directories currently installed.)
Removing wine ...
Processing triggers for desktop-file-utils ...
Processing triggers for man-db ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place


Everything is the same as it was. Error about broken packages is still being reported.
passemger
Level 1
Level 1
 
Posts: 6
Joined: Fri Jan 15, 2010 1:30 am

Re: Broken packages with no obvious solution

Postby passemger on Fri Jan 15, 2010 5:55 pm

Anyone please?
passemger
Level 1
Level 1
 
Posts: 6
Joined: Fri Jan 15, 2010 1:30 am

Re: Broken packages with no obvious solution

Postby mick55 on Fri Jan 15, 2010 10:52 pm

I am confused now. :?

Where are you getting this message about broken packages?
When you ran update from the command line it updated successfully.
Below is the output you posted.

Code: Select all
$ sudo apt-get update
Hit http://archive.ubuntu.com karmic Release.gpg
Ign http://archive.ubuntu.com karmic/main Translation-en_US                                                         
Hit http://security.ubuntu.com karmic-security Release.gpg                                                         
Ign http://security.ubuntu.com karmic-security/main Translation-en_US                                               
Hit http://archive.canonical.com karmic Release.gpg                                                                 
Ign http://archive.canonical.com karmic/partner Translation-en_US                                                   
Ign http://archive.ubuntu.com karmic/restricted Translation-en_US                                                   
Ign http://archive.ubuntu.com karmic/universe Translation-en_US                                                     
Ign http://archive.ubuntu.com karmic/multiverse Translation-en_US                                                   
Hit http://archive.ubuntu.com karmic-updates Release.gpg                                                           
Ign http://archive.ubuntu.com karmic-updates/main Translation-en_US                                                 
Ign http://archive.ubuntu.com karmic-updates/restricted Translation-en_US                                           
Hit http://packages.medibuntu.org karmic Release.gpg                                                               
Ign http://packages.medibuntu.org karmic/free Translation-en_US                                                     
Ign http://packages.medibuntu.org karmic/non-free Translation-en_US                                                 
Hit http://deb.opera.com stable Release.gpg                                                                         
Ign http://deb.opera.com stable/non-free Translation-en_US                                                       
Ign http://archive.ubuntu.com karmic-updates/universe Translation-en_US                                         
Ign http://archive.ubuntu.com karmic-updates/multiverse Translation-en_US                                       
Ign http://security.ubuntu.com karmic-security/restricted Translation-en_US                                         
Ign http://security.ubuntu.com karmic-security/universe Translation-en_US                                           
Ign http://security.ubuntu.com karmic-security/multiverse Translation-en_US                                         
Get:1 http://packages.linuxmint.com helena Release.gpg [198B]                                                       
Hit http://security.ubuntu.com karmic-security Release                                                             
Hit http://archive.ubuntu.com karmic Release                                                                       
Hit http://archive.canonical.com karmic Release                                                                     
Hit http://packages.medibuntu.org karmic Release                                                                   
Ign http://packages.linuxmint.com helena/main Translation-en_US                                                     
Ign http://packages.linuxmint.com helena/upstream Translation-en_US                       
Ign http://packages.linuxmint.com helena/import Translation-en_US                         
Hit http://archive.ubuntu.com karmic-updates Release                                                             
Hit http://deb.opera.com stable Release                                                                         
Hit http://security.ubuntu.com karmic-security/main Packages                                                     
Get:2 http://packages.linuxmint.com helena Release [7,251B]                               
Hit http://archive.ubuntu.com karmic/main Packages                                                                 
Hit http://archive.ubuntu.com karmic/restricted Packages                                                           
Hit http://archive.ubuntu.com karmic/universe Packages                                                             
Hit http://archive.ubuntu.com karmic/multiverse Packages                                                           
Hit http://archive.canonical.com karmic/partner Packages                                                           
Hit http://security.ubuntu.com karmic-security/restricted Packages                                                 
Hit http://security.ubuntu.com karmic-security/universe Packages                         
Hit http://security.ubuntu.com karmic-security/multiverse Packages                       
Hit http://packages.medibuntu.org karmic/free Packages                                   
Hit http://archive.ubuntu.com karmic-updates/main Packages                                                       
Hit http://packages.medibuntu.org karmic/non-free Packages                                 
Ign http://packages.linuxmint.com helena/main Packages                                     
Ign http://deb.opera.com stable/non-free Packages                                         
Hit http://archive.ubuntu.com karmic-updates/restricted Packages     
Hit http://archive.ubuntu.com karmic-updates/universe Packages                             
Hit http://archive.ubuntu.com karmic-updates/multiverse Packages                           
Ign http://packages.linuxmint.com helena/upstream Packages                                 
Ign http://packages.linuxmint.com helena/import Packages             
Ign http://deb.opera.com stable/non-free Packages                   
Ign http://packages.linuxmint.com helena/main Packages               
Hit http://deb.opera.com stable/non-free Packages                   
Ign http://packages.linuxmint.com helena/upstream Packages           
Hit http://archive.getdeb.net karmic-getdeb Release.gpg
Ign http://packages.linuxmint.com helena/import Packages
Ign http://archive.getdeb.net karmic-getdeb/games Translation-en_US
Ign http://archive.getdeb.net karmic-getdeb/apps Translation-en_US
Hit http://packages.linuxmint.com helena/main Packages
Hit http://archive.getdeb.net karmic-getdeb Release                           
Hit http://archive.getdeb.net karmic-getdeb/games Packages                     
Hit http://packages.linuxmint.com helena/upstream Packages
Hit http://archive.getdeb.net karmic-getdeb/apps Packages                     
Hit http://packages.linuxmint.com helena/import Packages                       
Fetched 7,449B in 1s (6,484B/s)                         
Reading package lists... Done


Is there a specific package you are attempting to install that is causing
this error, because as far as I can see you don't have a broken system,
because it is updating and I see no errors in any of the commands you ran.
I must be missing something, so could you please illuminate for me. :wink:

thanks
mick

PS
Or are you just having an issue with the Mint update manager GUI?
Things are more like they are now than they ever were before.

Dwight D. Eisenhower (1890 - 1969)
User avatar
mick55
Level 7
Level 7
 
Posts: 1507
Joined: Fri Sep 25, 2009 2:47 am

Re: Broken packages with no obvious solution

Postby passemger on Sat Jan 16, 2010 7:00 am

Well it seems it's fixed now.
Problem was like I said, when I tried to update my system by using "mintUpdate" (Mint update manager GUI), it was stubbornly reporting that there are broken packages. I went to Synaptic to upgrade packages manually that were supposed to be updated with "mintUpdate", I upgraded it and problem is gone, at least for now. Program (package) that was stuck was "Deluge" and it's dependencies.
Still, when I add new repository from WinHQ and try to install Wine it says that wine needs to remove Wine1.2 but then it fails installation because it depends on it, but I guess this contradictory problem is a different kind of problem.
If I hadn't fixed this I would probably forget about LinuxMint for some time, I simply don't have so much time to tackle basic desktop problems like this one (installing/uninstalling programs).
Thanks for all your effort Mick.
passemger
Level 1
Level 1
 
Posts: 6
Joined: Fri Jan 15, 2010 1:30 am

Linux Mint is funded by ads and donations.
 

Return to Software & Applications

Who is online

Users browsing this forum: No registered users and 24 guests