Re: [Hampshire] Error with apt-get upgrade on Debian

2011-11-06 Thread john lewis
On Sun, 6 Nov 2011 14:14:43 +
Robin Wilson ro...@rtwilson.com wrote:
 
 I have been trying to upgrade packages on my Debian installation
 using apt-get upgrade. When I ran that the first time it downloaded
 all of the packages and installed a number of them, before crashing
 saying that dpkg returned an error code (1). Whenever I try and run
 apt-get upgrade again I get the following message:
 
 Reading package lists... Done
 Building dependency tree   
 Reading state information... Done
 The following packages will be upgraded:
   mplayer
 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
 231 not fully installed or removed.
 Need to get 0 B/6,280 kB of archives.
 After this operation, 8,012 kB of additional disk space will be used.
 Do you want to continue [Y/n]? 
 
 It says that 231 packages are not fully installed or removed, which
 suggests to me that the upgrade process failed half way through. The
 thing is - I can't find out how to get it to restart again, and how
 to install/remove the 231 packages that need dealing with? All of my
 google searches are turning up forum posts that are either very old,
 or don't help at all.
 
 Any ideas how I can get this upgrade properly done?

personally I use aptitude update, followed by aptitude safe-upgrade as
aptitude seems to do a better job of tracking dependencies but I am
aware that using apt-get is now the default way.

Did it not continue when you replied 'Y, enter'??

You could try 'apt-get remove mplayer' then 'apt-get upgrade' again in
case it is that package blocking things, You can always re-install
mplayer or get an alternative, I use vlc or guayadeque. 

-- 
John Lewis
using Debian sid 

--
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--


Re: [Hampshire] Error with apt-get upgrade on Debian

2011-11-06 Thread Andy Smith
Hi Robin,

On Sun, Nov 06, 2011 at 02:14:43PM +, Robin Wilson wrote:
 The following packages will be upgraded:
   mplayer
 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
 231 not fully installed or removed.
 Need to get 0 B/6,280 kB of archives.
 After this operation, 8,012 kB of additional disk space will be used.
 Do you want to continue [Y/n]? 
 
 It says that 231 packages are not fully installed or removed, which suggests 
 to me that the upgrade process failed half way through. The thing is - I 
 can't find out how to get it to restart again, and how to install/remove the 
 231 packages that need dealing with? All of my google searches are turning up 
 forum posts that are either very old, or don't help at all.

It normally carries on to complete the outstanding actions after it
does the upgrade of mplayer. Does it not do that for you? Can you
post the full output after you say Y to the above?

apt-get dist-upgrade may be necessary, but show us what happens with
the above first..

Cheers,
Andy

-- 
http://bitfolk.com/ -- No-nonsense VPS hosting


signature.asc
Description: Digital signature
--
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--

Re: [Hampshire] Error with apt-get upgrade on Debian

2011-11-06 Thread Keith Edmunds
On Sun, 6 Nov 2011 14:14:43 +, ro...@rtwilson.com said:

 my Debian installation

What are the contents of:

/etc/debian_version

and

/etc/apt/sources.list

Do you have any files in /etc/apt/sources.d? If so, what are their
contents?
-- 
You can have everything in life you want if you help enough other people
get what they want - Zig Ziglar. 

Who did you help today?

--
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--


Re: [Hampshire] Error with apt-get upgrade on Debian

2011-11-06 Thread Simon Huggins
On Sun, Nov 06, 2011 at 02:14:43PM +, Robin Wilson wrote:
 I have been trying to upgrade packages on my Debian installation using
 apt-get upgrade. When I ran that the first time it downloaded all of
 the packages and installed a number of them, before crashing saying
 that dpkg returned an error code (1).

Don't suppose you remember anything else after this?

 Whenever I try and run apt-get upgrade again I get the following
 message:

 Reading package lists... Done
 Building dependency tree   
 Reading state information... Done
 The following packages will be upgraded:
   mplayer
 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
 231 not fully installed or removed.
 Need to get 0 B/6,280 kB of archives.
 After this operation, 8,012 kB of additional disk space will be used.
 Do you want to continue [Y/n]? 

What happens when you hit enter?

I'd try:
apt-get -f install
first of all.

-f is for --fix-broken which can help in some circumstances.

Other things you could try:
apt-get dist-upgrade
(rather than just plain upgrade)
aptitude dist-upgrade
(since aptitude uses a slightly different algorithm)

But I suspect apt-get -f install will get you further down the path.
There's probably something dodgy somewhere which caused the original
upgrade to bomb out so it'll be interesting to see what error you do end
up with.

Let us know how you get on.

Simon

-- 
... Mithrandir An acronym that sticks to your brain like butter to teflon

--
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--


Re: [Hampshire] Error with apt-get upgrade on Debian

2011-11-06 Thread Robin Wilson
Hi everyone,

Thanks for all the prompt help. I followed one of the previous bits of advice 
by running

apt-get remove mplayer

I can only assume that mplayer was causing the problem, as once this was 
removed the rest of the packages were processed properly. I have now 
reinstalled mplayer and it seems to be fine.

Not sure why it happened - but thanks for the help,

Robin

On 6 Nov 2011, at 14:36, Simon Huggins wrote:

 On Sun, Nov 06, 2011 at 02:14:43PM +, Robin Wilson wrote:
 I have been trying to upgrade packages on my Debian installation using
 apt-get upgrade. When I ran that the first time it downloaded all of
 the packages and installed a number of them, before crashing saying
 that dpkg returned an error code (1).
 
 Don't suppose you remember anything else after this?
 
 Whenever I try and run apt-get upgrade again I get the following
 message:
 
 Reading package lists... Done
 Building dependency tree   
 Reading state information... Done
 The following packages will be upgraded:
  mplayer
 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
 231 not fully installed or removed.
 Need to get 0 B/6,280 kB of archives.
 After this operation, 8,012 kB of additional disk space will be used.
 Do you want to continue [Y/n]? 
 
 What happens when you hit enter?
 
 I'd try:
   apt-get -f install
 first of all.
 
 -f is for --fix-broken which can help in some circumstances.
 
 Other things you could try:
   apt-get dist-upgrade
 (rather than just plain upgrade)
   aptitude dist-upgrade
 (since aptitude uses a slightly different algorithm)
 
 But I suspect apt-get -f install will get you further down the path.
 There's probably something dodgy somewhere which caused the original
 upgrade to bomb out so it'll be interesting to see what error you do end
 up with.
 
 Let us know how you get on.
 
 Simon
 
 -- 
 ... Mithrandir An acronym that sticks to your brain like butter to teflon
 
 --
 Please post to: Hampshire@mailman.lug.org.uk
 Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
 LUG URL: http://www.hantslug.org.uk
 --


--
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--