Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.

expected devel but got groovy #17

Closed
troyBORG opened this issue Jun 29, 2020 · 6 comments
Closed

expected devel but got groovy #17

troyBORG opened this issue Jun 29, 2020 · 6 comments

Comments

@troyBORG
Copy link

W: Conflicting distribution: http://security.ubuntu.com/ubuntu devel-security InRelease (expected devel-security but got groovy)

W: Conflicting distribution: http://archive.ubuntu.com/ubuntu devel InRelease (expected devel but got groovy)

W: Conflicting distribution: http://archive.ubuntu.com/ubuntu devel-updates InRelease (expected devel-updates but got groovy)

W: Conflicting distribution: http://archive.ubuntu.com/ubuntu devel-backports InRelease (expected devel-backports but got groovy)

I noticed this, unsure if its a bug.

@basak
Copy link

basak commented Jun 29, 2020

This is https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1728616

@m-ueberall
Copy link

For the record, I've cloned an existing LXD container (based on Focal Fossa/20.04LTS), bypassed the warnings and ended up with the above. Despite the hundreds of initial updates, this effectively does not allow me to upgrade to QEmu 5.0 …

@flexiondotorg
Copy link
Member

Qemu is currently 4.2 in groovy/devel. Are you getting qemu from a PPA?

@m-ueberall
Copy link

Qemu is currently 4.2 in groovy/devel. Are you getting qemu from a PPA?

My bad, I misread the overview on Launchpad, should have looked at groovy-proposed.

@troyBORG
Copy link
Author

I guess i was wondering if there was a way to squelch the warnings?

@p4j0c4
Copy link

p4j0c4 commented Jul 15, 2020

I looked for a solution to get rid of apt update errors Conflicting distribution: ... not being shown when executing the command in a terminal.

The workaround can be done by creating the following aliases, which I created with the following file name:

~/.bash_aliases

alias sudo='sudo '
alias apt='apt '
alias update='update |& grep -v "Conflicting distribution:"'

Comments:

[+] Take into account the spaces at the end of the first two aliases.

To apply the new aliases without logout or reboot, execute the following command:

source ~/.bash_aliases

To apply the same patch for the root user, just copy the same file to the root directory:

sudo cp -v ~/.bash_aliases /root/

I wish I would have found a better and more elegant solution, but with this patch at least the apt update errors Conflicting distribution: ... will no longer be shown.

In this way any other apt update errors will be shown.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants