APT complains about bad signature and security when adding repository and packages cannot be installed

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












After running the command sudo apt-get update in my terminal I have some errors:



Hit:1 https://dl.yarnpkg.com/debian stable InRelease
Hit:2 http://ppa.launchpad.net/webupd8team/y-ppa-manager/ubuntu artful InRelease
Get:3 http://id.archive.ubuntu.com/ubuntu artful InRelease [237 kB]
Get:4 http://security.ubuntu.com/ubuntu artful-security InRelease [78,6 kB]
Err:3 http://id.archive.ubuntu.com/ubuntu artful InRelease
The following signatures were invalid: BADSIG 3B4FE6ACC0B21F32 Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com>
Hit:5 http://id.archive.ubuntu.com/ubuntu artful-updates InRelease
Get:6 http://id.archive.ubuntu.com/ubuntu artful-backports InRelease [72,2 kB]
Reading package lists... Done
W: GPG error: http://id.archive.ubuntu.com/ubuntu artful InRelease: The following signatures were invalid: BADSIG 3B4FE6ACC0B21F32 Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com>
E: The repository 'http://id.archive.ubuntu.com/ubuntu artful InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.


If I ignore it and try



sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev nodejs yarn


I get more errors and the packages are not installed



Reading package lists... Done
Building dependency tree
Reading state information... Done
Package sqlite3 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package zlib1g-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package build-essential is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package nodejs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package python-software-properties is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
software-properties-common

E: Unable to locate package git-core
E: Package 'zlib1g-dev' has no installation candidate
E: Package 'build-essential' has no installation candidate
E: Unable to locate package libreadline-dev
E: Unable to locate package libyaml-dev
E: Unable to locate package libsqlite3-dev
E: Package 'sqlite3' has no installation candidate
E: Unable to locate package libxslt1-dev
E: Package 'python-software-properties' has no installation candidate
E: Unable to locate package libffi-dev
E: Package 'nodejs' has no installation candidate









share|improve this question























  • Possible duplicate of Force update from unsigned repository Ubuntu 16.04
    – Melebius
    Apr 18 at 9:33






  • 3




    It's usually a very bad idea to add repositories from other distributions. Why did you add that repository? What instructions were you following? Mixing repositories breaks things...
    – Zanna
    Apr 18 at 9:35










  • im done with the image, can you help me?
    – M Andi
    Apr 18 at 9:41










  • karel im done with all code on that's thread and still error
    – M Andi
    Apr 18 at 9:42







  • 1




    If you mix Debian packages into an Ubuntu system there's a good chance the system will break.
    – dsstorefile1
    Apr 18 at 9:51














up vote
0
down vote

favorite












After running the command sudo apt-get update in my terminal I have some errors:



Hit:1 https://dl.yarnpkg.com/debian stable InRelease
Hit:2 http://ppa.launchpad.net/webupd8team/y-ppa-manager/ubuntu artful InRelease
Get:3 http://id.archive.ubuntu.com/ubuntu artful InRelease [237 kB]
Get:4 http://security.ubuntu.com/ubuntu artful-security InRelease [78,6 kB]
Err:3 http://id.archive.ubuntu.com/ubuntu artful InRelease
The following signatures were invalid: BADSIG 3B4FE6ACC0B21F32 Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com>
Hit:5 http://id.archive.ubuntu.com/ubuntu artful-updates InRelease
Get:6 http://id.archive.ubuntu.com/ubuntu artful-backports InRelease [72,2 kB]
Reading package lists... Done
W: GPG error: http://id.archive.ubuntu.com/ubuntu artful InRelease: The following signatures were invalid: BADSIG 3B4FE6ACC0B21F32 Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com>
E: The repository 'http://id.archive.ubuntu.com/ubuntu artful InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.


If I ignore it and try



sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev nodejs yarn


I get more errors and the packages are not installed



Reading package lists... Done
Building dependency tree
Reading state information... Done
Package sqlite3 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package zlib1g-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package build-essential is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package nodejs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package python-software-properties is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
software-properties-common

E: Unable to locate package git-core
E: Package 'zlib1g-dev' has no installation candidate
E: Package 'build-essential' has no installation candidate
E: Unable to locate package libreadline-dev
E: Unable to locate package libyaml-dev
E: Unable to locate package libsqlite3-dev
E: Package 'sqlite3' has no installation candidate
E: Unable to locate package libxslt1-dev
E: Package 'python-software-properties' has no installation candidate
E: Unable to locate package libffi-dev
E: Package 'nodejs' has no installation candidate









share|improve this question























  • Possible duplicate of Force update from unsigned repository Ubuntu 16.04
    – Melebius
    Apr 18 at 9:33






  • 3




    It's usually a very bad idea to add repositories from other distributions. Why did you add that repository? What instructions were you following? Mixing repositories breaks things...
    – Zanna
    Apr 18 at 9:35










  • im done with the image, can you help me?
    – M Andi
    Apr 18 at 9:41










  • karel im done with all code on that's thread and still error
    – M Andi
    Apr 18 at 9:42







  • 1




    If you mix Debian packages into an Ubuntu system there's a good chance the system will break.
    – dsstorefile1
    Apr 18 at 9:51












up vote
0
down vote

favorite









up vote
0
down vote

favorite











After running the command sudo apt-get update in my terminal I have some errors:



Hit:1 https://dl.yarnpkg.com/debian stable InRelease
Hit:2 http://ppa.launchpad.net/webupd8team/y-ppa-manager/ubuntu artful InRelease
Get:3 http://id.archive.ubuntu.com/ubuntu artful InRelease [237 kB]
Get:4 http://security.ubuntu.com/ubuntu artful-security InRelease [78,6 kB]
Err:3 http://id.archive.ubuntu.com/ubuntu artful InRelease
The following signatures were invalid: BADSIG 3B4FE6ACC0B21F32 Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com>
Hit:5 http://id.archive.ubuntu.com/ubuntu artful-updates InRelease
Get:6 http://id.archive.ubuntu.com/ubuntu artful-backports InRelease [72,2 kB]
Reading package lists... Done
W: GPG error: http://id.archive.ubuntu.com/ubuntu artful InRelease: The following signatures were invalid: BADSIG 3B4FE6ACC0B21F32 Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com>
E: The repository 'http://id.archive.ubuntu.com/ubuntu artful InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.


If I ignore it and try



sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev nodejs yarn


I get more errors and the packages are not installed



Reading package lists... Done
Building dependency tree
Reading state information... Done
Package sqlite3 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package zlib1g-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package build-essential is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package nodejs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package python-software-properties is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
software-properties-common

E: Unable to locate package git-core
E: Package 'zlib1g-dev' has no installation candidate
E: Package 'build-essential' has no installation candidate
E: Unable to locate package libreadline-dev
E: Unable to locate package libyaml-dev
E: Unable to locate package libsqlite3-dev
E: Package 'sqlite3' has no installation candidate
E: Unable to locate package libxslt1-dev
E: Package 'python-software-properties' has no installation candidate
E: Unable to locate package libffi-dev
E: Package 'nodejs' has no installation candidate









share|improve this question















After running the command sudo apt-get update in my terminal I have some errors:



Hit:1 https://dl.yarnpkg.com/debian stable InRelease
Hit:2 http://ppa.launchpad.net/webupd8team/y-ppa-manager/ubuntu artful InRelease
Get:3 http://id.archive.ubuntu.com/ubuntu artful InRelease [237 kB]
Get:4 http://security.ubuntu.com/ubuntu artful-security InRelease [78,6 kB]
Err:3 http://id.archive.ubuntu.com/ubuntu artful InRelease
The following signatures were invalid: BADSIG 3B4FE6ACC0B21F32 Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com>
Hit:5 http://id.archive.ubuntu.com/ubuntu artful-updates InRelease
Get:6 http://id.archive.ubuntu.com/ubuntu artful-backports InRelease [72,2 kB]
Reading package lists... Done
W: GPG error: http://id.archive.ubuntu.com/ubuntu artful InRelease: The following signatures were invalid: BADSIG 3B4FE6ACC0B21F32 Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com>
E: The repository 'http://id.archive.ubuntu.com/ubuntu artful InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.


If I ignore it and try



sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev nodejs yarn


I get more errors and the packages are not installed



Reading package lists... Done
Building dependency tree
Reading state information... Done
Package sqlite3 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package zlib1g-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package build-essential is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package nodejs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package python-software-properties is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
software-properties-common

E: Unable to locate package git-core
E: Package 'zlib1g-dev' has no installation candidate
E: Package 'build-essential' has no installation candidate
E: Unable to locate package libreadline-dev
E: Unable to locate package libyaml-dev
E: Unable to locate package libsqlite3-dev
E: Package 'sqlite3' has no installation candidate
E: Unable to locate package libxslt1-dev
E: Package 'python-software-properties' has no installation candidate
E: Unable to locate package libffi-dev
E: Package 'nodejs' has no installation candidate






apt package-management






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 18 at 9:40

























asked Apr 18 at 9:30









M Andi

11




11











  • Possible duplicate of Force update from unsigned repository Ubuntu 16.04
    – Melebius
    Apr 18 at 9:33






  • 3




    It's usually a very bad idea to add repositories from other distributions. Why did you add that repository? What instructions were you following? Mixing repositories breaks things...
    – Zanna
    Apr 18 at 9:35










  • im done with the image, can you help me?
    – M Andi
    Apr 18 at 9:41










  • karel im done with all code on that's thread and still error
    – M Andi
    Apr 18 at 9:42







  • 1




    If you mix Debian packages into an Ubuntu system there's a good chance the system will break.
    – dsstorefile1
    Apr 18 at 9:51
















  • Possible duplicate of Force update from unsigned repository Ubuntu 16.04
    – Melebius
    Apr 18 at 9:33






  • 3




    It's usually a very bad idea to add repositories from other distributions. Why did you add that repository? What instructions were you following? Mixing repositories breaks things...
    – Zanna
    Apr 18 at 9:35










  • im done with the image, can you help me?
    – M Andi
    Apr 18 at 9:41










  • karel im done with all code on that's thread and still error
    – M Andi
    Apr 18 at 9:42







  • 1




    If you mix Debian packages into an Ubuntu system there's a good chance the system will break.
    – dsstorefile1
    Apr 18 at 9:51















Possible duplicate of Force update from unsigned repository Ubuntu 16.04
– Melebius
Apr 18 at 9:33




Possible duplicate of Force update from unsigned repository Ubuntu 16.04
– Melebius
Apr 18 at 9:33




3




3




It's usually a very bad idea to add repositories from other distributions. Why did you add that repository? What instructions were you following? Mixing repositories breaks things...
– Zanna
Apr 18 at 9:35




It's usually a very bad idea to add repositories from other distributions. Why did you add that repository? What instructions were you following? Mixing repositories breaks things...
– Zanna
Apr 18 at 9:35












im done with the image, can you help me?
– M Andi
Apr 18 at 9:41




im done with the image, can you help me?
– M Andi
Apr 18 at 9:41












karel im done with all code on that's thread and still error
– M Andi
Apr 18 at 9:42





karel im done with all code on that's thread and still error
– M Andi
Apr 18 at 9:42





1




1




If you mix Debian packages into an Ubuntu system there's a good chance the system will break.
– dsstorefile1
Apr 18 at 9:51




If you mix Debian packages into an Ubuntu system there's a good chance the system will break.
– dsstorefile1
Apr 18 at 9:51










1 Answer
1






active

oldest

votes

















up vote
0
down vote













The system says that there is unsigned repository "http://id.archive.ubuntu.com/ubuntu artful".



Try this command:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32



It must solve your problem.






share|improve this answer




















  • im done with it but still error
    – M Andi
    Apr 19 at 16:35










  • Could you say about the output of the command? It was like this: Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/user/0/tmp.OykkQtm4Ui --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32 gpg: requesting key C0B21F32 from hkp server keyserver.ubuntu.com gpg: key C0B21F32: "Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com>" 11 new signatures gpg: Total number processed: 1 gpg: new signatures: 11
    – Gintoki
    Apr 23 at 12:49











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1026063%2fapt-complains-about-bad-signature-and-security-when-adding-repository-and-packag%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













The system says that there is unsigned repository "http://id.archive.ubuntu.com/ubuntu artful".



Try this command:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32



It must solve your problem.






share|improve this answer




















  • im done with it but still error
    – M Andi
    Apr 19 at 16:35










  • Could you say about the output of the command? It was like this: Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/user/0/tmp.OykkQtm4Ui --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32 gpg: requesting key C0B21F32 from hkp server keyserver.ubuntu.com gpg: key C0B21F32: "Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com>" 11 new signatures gpg: Total number processed: 1 gpg: new signatures: 11
    – Gintoki
    Apr 23 at 12:49















up vote
0
down vote













The system says that there is unsigned repository "http://id.archive.ubuntu.com/ubuntu artful".



Try this command:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32



It must solve your problem.






share|improve this answer




















  • im done with it but still error
    – M Andi
    Apr 19 at 16:35










  • Could you say about the output of the command? It was like this: Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/user/0/tmp.OykkQtm4Ui --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32 gpg: requesting key C0B21F32 from hkp server keyserver.ubuntu.com gpg: key C0B21F32: "Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com>" 11 new signatures gpg: Total number processed: 1 gpg: new signatures: 11
    – Gintoki
    Apr 23 at 12:49













up vote
0
down vote










up vote
0
down vote









The system says that there is unsigned repository "http://id.archive.ubuntu.com/ubuntu artful".



Try this command:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32



It must solve your problem.






share|improve this answer












The system says that there is unsigned repository "http://id.archive.ubuntu.com/ubuntu artful".



Try this command:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32



It must solve your problem.







share|improve this answer












share|improve this answer



share|improve this answer










answered Apr 18 at 13:33









Gintoki

162




162











  • im done with it but still error
    – M Andi
    Apr 19 at 16:35










  • Could you say about the output of the command? It was like this: Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/user/0/tmp.OykkQtm4Ui --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32 gpg: requesting key C0B21F32 from hkp server keyserver.ubuntu.com gpg: key C0B21F32: "Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com>" 11 new signatures gpg: Total number processed: 1 gpg: new signatures: 11
    – Gintoki
    Apr 23 at 12:49

















  • im done with it but still error
    – M Andi
    Apr 19 at 16:35










  • Could you say about the output of the command? It was like this: Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/user/0/tmp.OykkQtm4Ui --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32 gpg: requesting key C0B21F32 from hkp server keyserver.ubuntu.com gpg: key C0B21F32: "Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com>" 11 new signatures gpg: Total number processed: 1 gpg: new signatures: 11
    – Gintoki
    Apr 23 at 12:49
















im done with it but still error
– M Andi
Apr 19 at 16:35




im done with it but still error
– M Andi
Apr 19 at 16:35












Could you say about the output of the command? It was like this: Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/user/0/tmp.OykkQtm4Ui --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32 gpg: requesting key C0B21F32 from hkp server keyserver.ubuntu.com gpg: key C0B21F32: "Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com>" 11 new signatures gpg: Total number processed: 1 gpg: new signatures: 11
– Gintoki
Apr 23 at 12:49





Could you say about the output of the command? It was like this: Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/user/0/tmp.OykkQtm4Ui --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32 gpg: requesting key C0B21F32 from hkp server keyserver.ubuntu.com gpg: key C0B21F32: "Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com>" 11 new signatures gpg: Total number processed: 1 gpg: new signatures: 11
– Gintoki
Apr 23 at 12:49


















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1026063%2fapt-complains-about-bad-signature-and-security-when-adding-repository-and-packag%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491