[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: out to get out of an apt-get problem...



On 25/10/13 09:12, François Patte wrote:
> Le 24/10/2013 23:42, Scott Ferguson a écrit :
>> On 25/10/13 04:42, François Patte wrote:
>>> Bonsoir,
> 
>>
>> It looks like you 'might' have mixed conflicting repositories....
>> perhaps deb-multimedia?
>>
>> alien requires debhelper, you can force the solution but before dpkg/apt
>> can deal with it you need to fix an outstanding dependancy problem with
>> multimedia packages. I'd suggest you ignore the alien package for the
>> time being -
>>
>> *if* you've mixed Debian official with unofficial (i.e. deb-multimedia):-
>> 1. remove the unofficial packages and comment out the entry in
>> /etc/apt/source.list - preferably a non-standard repo would be a *.list
>> entry in /etc/apt/source.list.d (but it's not essential) in which case
>> "# mv /etc/apt/sources.list.d/whatever.list ../"
>> 2. apt-get update;apt-get -f install[;apt-get upgrade]
> 
> I still get these messages:
> 
> Errors were encountered while processing:
>  /var/cache/apt/archives/libmjpegutils-2.1-0_1%3a2.1.0+debian-2_amd64.deb
>  /var/cache/apt/archives/liblavjpeg-2.1-0_1%3a2.1.0+debian-2_amd64.deb
>  /var/cache/apt/archives/libmpeg2encpp-2.1-0_1%3a2.1.0+debian-2_amd64.deb
>  /var/cache/apt/archives/libmplex2-2.1-0_1%3a2.1.0+debian-2_amd64.deb
> E: Sub-process /usr/bin/dpkg returned an error code (1)


# apt-get -sf install | more
if it looks like nothing will explode and spray the room with toxic
waste proceed with:-
# apt-get -f install

> 
> I do not understand what you mean by "remove the unofficial packages"
> remove *all packages* installed from deb-multimedia?
> 
> Best regards
> 


Yes. I presume that means you did have deb-multimedia enabled. There are
several ways to do that (remove all from a certain repository) - the
method I use to remove all those packages from that repository (until I
find a more efficient way) is:-
1. remove entry for given repository (e.g. deb-multimedia) in sources lists
2. # apt-get update
3. # for i in `apt-show-versions | grep 'No available' | cut -d' ' -f 1`
;do apt-get remove -y $i ; done


You can re-install them later taking care not to break the main system,
but first remove them.

When you remove them you'll get lots of "run apt-get autoremove" type
messages. You can ignore those messages.


Kind regards



NOTE for search engines - when removing packages like this it's best to
use apt instead of aptitude to avoid problems with multiarch dependencies.


Reply to: