Synaptic error msg after upgrade from Natty to Oneric

Asked by expat3737 on 2011-10-14

Received the following error message when trying to start Synaptic after upgrading from Natty to Oneric. Where and how to correct?

E: The value 'unstable' is invalid for APT::Default-Release as such a release is not available in the sources
E: _cache->open() failed, please report.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu synaptic Edit question
Assignee:
No assignee Edit question
Solved by:
Kyle Pearson
Solved:
2011-10-16
Last query:
2011-10-16
Last reply:
2011-10-16

Can you give the output of:

sudo do-release-upgrade

Thanks

expat3737 (expat3737) said : #2

Request for additional information:

Sudo do-release-upgrade reports:

"Checking for a new ubuntu release
No new release found"

--
Sign me <<email address hidden>?Subject=Wazoo%20Stuff%20eh?> as: Dancin' wit
Ubuntu <http://www.ubuntu.com/>
Je ne sais quoi 1202 <http://history.nasa.gov/alsj/a11/a11.1201-pa.html>

Sintel <http://www.sintel.org/wp-content/content/download.html> -- cave quid
dicis, quando, et cui

)'(
http://www.thisisthecountdown.com/

On Sat, Oct 15, 2011 at 2:35 AM, actionparsnip <
<email address hidden>> wrote:

> Your question #174349 on synaptic in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/synaptic/+question/174349
>
> Status: Open => Needs information
>
> actionparsnip requested more information:
> Can you give the output of:
>
> sudo do-release-upgrade
>
> Thanks
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+source/synaptic/+question/174349
>
> You received this question notification because you asked the question.
>

Try this:

Be sure you have a network connection active

Open a terminal by pressing ctrl+alt+t
if doesn't work press ctrl+alt+f1 and made login with your user and password, then type:

sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get -f upgrade
sudo apt-get -f dist-upgrade
sudo apt-get autoremove
sudo apt-get clean
sudo apt-get update
sudo apt-get dist-upgrade
sudo reboot

give your user password when requested, you don't see nothing when you type it, then press enter.

expat3737 (expat3737) said : #4

Thank you very very much for your kind suggestions. I tried your potential
solution and it did not work. Same msg appears:

"E: The value 'unstable' is invalid for APT::Default-Release as such a
release is not available in the sources
E: _cache->open() failed, please report."
Paradoxically both UpDateManager and Ubuntu Software Center work. The
problem is with Synaptic and somewhere in /etc/apt/ near as I can reason it
out.

On Sat, Oct 15, 2011 at 1:50 PM, marcobra (Marco Braida) <
<email address hidden>> wrote:

> Your question #174349 on synaptic in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/synaptic/+question/174349
>
> Status: Open => Answered
>
> marcobra (Marco Braida) proposed the following answer:
> Try this:
>
> Be sure you have a network connection active
>
> Open a terminal by pressing ctrl+alt+t
> if doesn't work press ctrl+alt+f1 and made login with your user and
> password, then type:
>
> sudo dpkg --configure -a
> sudo apt-get -f install
> sudo apt-get -f upgrade
> sudo apt-get -f dist-upgrade
> sudo apt-get autoremove
> sudo apt-get clean
> sudo apt-get update
> sudo apt-get dist-upgrade
> sudo reboot
>
> give your user password when requested, you don't see nothing when you
> type it, then press enter.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.launchpad.net/ubuntu/+source/synaptic/+question/174349/+confirm?answer_id=2
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+source/synaptic/+question/174349
>
> You received this question notification because you asked the question.
>

What is the output of:

lsb_release -a; cat /etc/apt/sources.list

Thanks

expat3737 (expat3737) said : #6

It just returns the contents of the apt sources list with no indication or
pointers as to what might be the fault. Cleaned out all the PPA references
just in case there might be something there that caused it. The result was
still the same reference as before. Even went to another identical upgraded
drive that works and copied the files from /etc/apt thinking that would
solve the problem. Still got the same error msg. After two plus days of this
I am a bit tired so I figure there isn't much left to try. Waiting for a
friend to do a clean install and send me a copy of his /etc/apt so I can
compare.

Sources list:

lsb_release -a; cat /etc/apt/sources.list

LSB Version:
core-2.0-ia32:core-2.0-noarch:core-3.0-ia32:core-3.0-noarch:core-3.1-ia32:core-3.1-noarch:core-3.2-ia32:core-3.2-noarch:core-4.0-ia32:core-4.0-noarch
Distributor ID: Ubuntu
Description: Ubuntu 11.10
Release: 11.10
Codename: oneiric

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu oneiric main restricted
deb-src http://archive.ubuntu.com/ubuntu oneiric main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu oneiric-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu oneiric-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu oneiric universe
deb-src http://archive.ubuntu.com/ubuntu oneiric universe
deb http://archive.ubuntu.com/ubuntu oneiric-updates universe
deb-src http://archive.ubuntu.com/ubuntu oneiric-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://archive.ubuntu.com/ubuntu oneiric multiverse
deb-src http://archive.ubuntu.com/ubuntu oneiric multiverse
deb http://archive.ubuntu.com/ubuntu oneiric-updates multiverse
deb-src http://archive.ubuntu.com/ubuntu oneiric-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu oneiric-backports main restricted
universe multiverse
deb-src http://th.archive.ubuntu.com/ubuntu/ natty-backports main restricted
universe multiverse

deb http://archive.ubuntu.com/ubuntu oneiric-security main restricted
deb-src http://archive.ubuntu.com/ubuntu oneiric-security main restricted
deb http://archive.ubuntu.com/ubuntu oneiric-security universe
deb-src http://archive.ubuntu.com/ubuntu oneiric-security universe
deb http://archive.ubuntu.com/ubuntu oneiric-security multiverse
deb-src http://archive.ubuntu.com/ubuntu oneiric-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu oneiric partner
deb-src http://archive.canonical.com/ubuntu oneiric partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu oneiric main
deb http://archive.ubuntu.com/ubuntu oneiric-proposed restricted main
multiverse universe
deb-src http://extras.ubuntu.com/ubuntu oneiric main

Appreciate the help but this one looks more and more like its time to nuke
and start over.

On Sat, Oct 15, 2011 at 6:40 PM, actionparsnip <
<email address hidden>> wrote:

> Your question #174349 on synaptic in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/synaptic/+question/174349
>
> Status: Open => Answered
>
> actionparsnip proposed the following answer:
> What is the output of:
>
> lsb_release -a; cat /etc/apt/sources.list
>
> Thanks
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.launchpad.net/ubuntu/+source/synaptic/+question/174349/+confirm?answer_id=4
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+source/synaptic/+question/174349
>
> You received this question notification because you asked the question.
>

Ok and the output of:

cat /etc/apt/preferences

Thanks

expat3737 (expat3737) said : #8

Out put from cat /etc/apt/preferences below:

$ cat: /etc/apt/preferences: No such file or directory

On Sat, Oct 15, 2011 at 7:30 PM, actionparsnip <
<email address hidden>> wrote:

> cat /etc/apt/preferences

Kyle Pearson (demos-taiwan) said : #9

I'm getting the exact same problem, except with the word "natty" flagged, rather than "unstable".

I've grepped all the files located within /etc/apt, but the only places i find "natty" are in lines flagged as comments.

I've cleaned out apt, deleted all the cruft from apt, and reinitiated the upgrade following the steps above.

The problem has not gone away.

The upgrade took place yesterday night.

My computer is a Compaq CQ40 laptop, AMD64 processor, 2 G of RAM; fwiw, i had some problems yesterday when i ran out of space on my /usr partition.

Looking forward to any help y'all can give, and if i find anything i'll pop back on and let y'all know.

Cheers --

Best Kyle Pearson (demos-taiwan) said : #10

The problem is in the /root/.synaptic/synaptic.conf

Cheers --

expat3737 (expat3737) said : #11

Interesting. Don't have any help to offer at this point. Logic has failed so
I've started trying juju. Deleted Synaptic and reinstalled, cleaned the
cache, replaced /etc/apt folder with a clean install /etc/apt folder (if you
try beware of the gpg issues), looked at log files and in
/var/cache/apt/archives, and the error message keeps popping up. I've
haven't "pinned" any external repositories and have removed all PPA
references. At this point I am given to believe that it is a reference in
some obscure "apt" file that points to "unstable." I figure if I can find
that file and change unstable to stable that might solve the problem... just
got your latest message and found the unstable reference and changed it.
Problem solved. Thanks.

On Sun, Oct 16, 2011 at 11:35 AM, Kyle Pearson <
<email address hidden>> wrote:

> Your question #174349 on synaptic in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/synaptic/+question/174349
>
> Kyle Pearson posted a new comment:
> I'm getting the exact same problem, except with the word "natty"
> flagged, rather than "unstable".
>
> I've grepped all the files located within /etc/apt, but the only places
> i find "natty" are in lines flagged as comments.
>
> I've cleaned out apt, deleted all the cruft from apt, and reinitiated
> the upgrade following the steps above.
>
> The problem has not gone away.
>
> The upgrade took place yesterday night.
>
> My computer is a Compaq CQ40 laptop, AMD64 processor, 2 G of RAM; fwiw,
> i had some problems yesterday when i ran out of space on my /usr
> partition.
>
> Looking forward to any help y'all can give, and if i find anything i'll
> pop back on and let y'all know.
>
> Cheers --
>
> --
> You received this question notification because you asked the question.
>

expat3737 (expat3737) said : #12

Tried the solution as found by Kyle Pearson and it resolved the problem for me. Thanks Kyle.

Kyle Pearson proposed the following answer:
The problem is in the /root/.synaptic/synaptic.conf

--
Found it on the last line before the closing "};" changed "unstable" to "stable."

Kyle Pearson (demos-taiwan) said : #13

Glad i could be of help.

John Law (anoctoil) said : #14

Similar problem upgrade from xubuntu natty to oneiric. Synaptic throws error. I reported bug #880003.
Thanks to this thread I have fixed the problem.
/root/.synaptic/synaptic.conf had a value DefaultDistro "natty". I changed that to oneiric then attempted to load synaptic. Synaptic still threw an error but subtly different.
I reasoned there must be some other thing in the configuration so I did
sudo apt-get remove synaptic
sudo apt-get autoremove
sudo apt-get install synaptic.

Synaptic now launched correctly.
I will update my bug report.

Danna Gifford (dannagifford) said : #15

I had the same problem with oneric to presise upgrade. I fixed it by changing in /root/.synaptic/synaptic.conf

DefaultDistro "oneric";

to

DefaultDistro "";

Then synaptic worked again. You can then go in and set your preferred distribution again, if you choose.