apt upgrade fails with libglib/libgdk error
Having an issue updating Ubuntu 18.04 install
sudo apt update
works fine, then
sudo apt upgrade
fails with
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies.
libgdk-pixbuf2.0-0 : Depends: libglib2.0-0 (= 6= 2.48.0) but 2.56.3-0ubuntu0.18.04.1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
then running:
sudo apt --fix-broken install
gives
The following additional packages will be installed:
libgdk-pixbuf2.0-0
The following packages will be upgraded:
libgdk-pixbuf2.0-0
followed by:
dpkg: warning: parsing file '/var/lib/dpkg/status' near line 14881 package 'libgdk-pixbuf2.0-0:amd64':
'Depends' field, reference to 'libglib2.0-0':
implicit exact match on version number, suggest using '=' instead
dpkg: error: parsing file '/var/lib/dpkg/status' near line 14881 package 'libgdk-pixbuf2.0-0:amd64':
'Depends' field, reference to 'libglib2.0-0': version contains ' '
E: Sub-process /usr/bin/dpkg returned an error code (2)
edit:
$ apt-cache policy libgdk-pixbuf2.0-0:amd64 libglib2.0-0
libgdk-pixbuf2.0-0:
Installed: 2.36.11-2
Candidate: 2.36.11-2
Version table:
2.36.11-2 500
500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
*** 2.36.11-2 100
100 /var/lib/dpkg/status
libglib2.0-0:
Installed: 2.56.3-0ubuntu0.18.04.1
Candidate: 2.56.3-0ubuntu0.18.04.1
Version table:
*** 2.56.3-0ubuntu0.18.04.1 100
100 /var/lib/dpkg/status
2.56.1-2ubuntu1 500
500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
edit2:
after re-enabling the package sources
$ sudo apt update
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Hit:2 http://gb.archive.ubuntu.com/ubuntu bionic InRelease
Get:3 http://gb.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Fetched 177 kB in 0s (384 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
122 packages can be upgraded. Run 'apt list --upgradable' to see them.
then
$ sudo apt full-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies.
libgdk-pixbuf2.0-0 : Depends: libglib2.0-0 (= 6= 2.48.0) but 2.56.3-0ubuntu0.18.04.1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
$ apt-cache policy libgdk-pixbuf2.0-0:amd64 libglib2.0-0
libgdk-pixbuf2.0-0:
Installed: 2.36.11-2
Candidate: 2.36.11-2
Version table:
2.36.11-2 500
500 http://gb.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
*** 2.36.11-2 100
100 /var/lib/dpkg/status
libglib2.0-0:
Installed: 2.56.3-0ubuntu0.18.04.1
Candidate: 2.56.3-0ubuntu0.18.04.1
Version table:
*** 2.56.3-0ubuntu0.18.04.1 500
500 http://gb.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
100 /var/lib/dpkg/status
2.56.2-0ubuntu0.18.04.2 500
500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
2.56.1-2ubuntu1 500
500 http://gb.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
apt 18.04
|
show 1 more comment
Having an issue updating Ubuntu 18.04 install
sudo apt update
works fine, then
sudo apt upgrade
fails with
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies.
libgdk-pixbuf2.0-0 : Depends: libglib2.0-0 (= 6= 2.48.0) but 2.56.3-0ubuntu0.18.04.1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
then running:
sudo apt --fix-broken install
gives
The following additional packages will be installed:
libgdk-pixbuf2.0-0
The following packages will be upgraded:
libgdk-pixbuf2.0-0
followed by:
dpkg: warning: parsing file '/var/lib/dpkg/status' near line 14881 package 'libgdk-pixbuf2.0-0:amd64':
'Depends' field, reference to 'libglib2.0-0':
implicit exact match on version number, suggest using '=' instead
dpkg: error: parsing file '/var/lib/dpkg/status' near line 14881 package 'libgdk-pixbuf2.0-0:amd64':
'Depends' field, reference to 'libglib2.0-0': version contains ' '
E: Sub-process /usr/bin/dpkg returned an error code (2)
edit:
$ apt-cache policy libgdk-pixbuf2.0-0:amd64 libglib2.0-0
libgdk-pixbuf2.0-0:
Installed: 2.36.11-2
Candidate: 2.36.11-2
Version table:
2.36.11-2 500
500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
*** 2.36.11-2 100
100 /var/lib/dpkg/status
libglib2.0-0:
Installed: 2.56.3-0ubuntu0.18.04.1
Candidate: 2.56.3-0ubuntu0.18.04.1
Version table:
*** 2.56.3-0ubuntu0.18.04.1 100
100 /var/lib/dpkg/status
2.56.1-2ubuntu1 500
500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
edit2:
after re-enabling the package sources
$ sudo apt update
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Hit:2 http://gb.archive.ubuntu.com/ubuntu bionic InRelease
Get:3 http://gb.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Fetched 177 kB in 0s (384 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
122 packages can be upgraded. Run 'apt list --upgradable' to see them.
then
$ sudo apt full-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies.
libgdk-pixbuf2.0-0 : Depends: libglib2.0-0 (= 6= 2.48.0) but 2.56.3-0ubuntu0.18.04.1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
$ apt-cache policy libgdk-pixbuf2.0-0:amd64 libglib2.0-0
libgdk-pixbuf2.0-0:
Installed: 2.36.11-2
Candidate: 2.36.11-2
Version table:
2.36.11-2 500
500 http://gb.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
*** 2.36.11-2 100
100 /var/lib/dpkg/status
libglib2.0-0:
Installed: 2.56.3-0ubuntu0.18.04.1
Candidate: 2.56.3-0ubuntu0.18.04.1
Version table:
*** 2.56.3-0ubuntu0.18.04.1 500
500 http://gb.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
100 /var/lib/dpkg/status
2.56.2-0ubuntu0.18.04.2 500
500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
2.56.1-2ubuntu1 500
500 http://gb.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
apt 18.04
1
Please add output ofapt-cache policy libgdk-pixbuf2.0-0:amd64 libglib2.0-0
to the question.
– N0rbert
Jan 28 at 8:42
1
For me it seems that you have not enabled bionic-security and bionic-updates pockets of repositories. Please enable them and retry withsudo apt update
,sudo apt full-upgrade
.
– N0rbert
Jan 28 at 8:51
Try my updated answer.
– N0rbert
Jan 28 at 9:02
Thanks - I get the same error as before: "dpkg: error: parsing file '/var/lib/dpkg/status' near line 14881 package 'libgdk-pixbuf2.0-0:amd64': " - the line in questions reads "Depends: libc6 (>= 2.14), libglib2.0-0 (6= 2.48.0), libjpeg8 (>= 8c), libpng16-16 (>= 1.6.2-1), libtiff5 (>= 4.0.3), libx11-6, shared-mime-info, libgdk-pixbuf2.0-common (= 2.36.11-2)"
– pete
Jan 28 at 9:09
1
Thanks for your help - I fixed it by editing the /var/lib/dpkg/status file and changing libglib2.0-0(6=2.48.0) to read (=2.48.0) - then did an apt update/upgrade
– pete
Jan 28 at 9:35
|
show 1 more comment
Having an issue updating Ubuntu 18.04 install
sudo apt update
works fine, then
sudo apt upgrade
fails with
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies.
libgdk-pixbuf2.0-0 : Depends: libglib2.0-0 (= 6= 2.48.0) but 2.56.3-0ubuntu0.18.04.1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
then running:
sudo apt --fix-broken install
gives
The following additional packages will be installed:
libgdk-pixbuf2.0-0
The following packages will be upgraded:
libgdk-pixbuf2.0-0
followed by:
dpkg: warning: parsing file '/var/lib/dpkg/status' near line 14881 package 'libgdk-pixbuf2.0-0:amd64':
'Depends' field, reference to 'libglib2.0-0':
implicit exact match on version number, suggest using '=' instead
dpkg: error: parsing file '/var/lib/dpkg/status' near line 14881 package 'libgdk-pixbuf2.0-0:amd64':
'Depends' field, reference to 'libglib2.0-0': version contains ' '
E: Sub-process /usr/bin/dpkg returned an error code (2)
edit:
$ apt-cache policy libgdk-pixbuf2.0-0:amd64 libglib2.0-0
libgdk-pixbuf2.0-0:
Installed: 2.36.11-2
Candidate: 2.36.11-2
Version table:
2.36.11-2 500
500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
*** 2.36.11-2 100
100 /var/lib/dpkg/status
libglib2.0-0:
Installed: 2.56.3-0ubuntu0.18.04.1
Candidate: 2.56.3-0ubuntu0.18.04.1
Version table:
*** 2.56.3-0ubuntu0.18.04.1 100
100 /var/lib/dpkg/status
2.56.1-2ubuntu1 500
500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
edit2:
after re-enabling the package sources
$ sudo apt update
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Hit:2 http://gb.archive.ubuntu.com/ubuntu bionic InRelease
Get:3 http://gb.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Fetched 177 kB in 0s (384 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
122 packages can be upgraded. Run 'apt list --upgradable' to see them.
then
$ sudo apt full-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies.
libgdk-pixbuf2.0-0 : Depends: libglib2.0-0 (= 6= 2.48.0) but 2.56.3-0ubuntu0.18.04.1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
$ apt-cache policy libgdk-pixbuf2.0-0:amd64 libglib2.0-0
libgdk-pixbuf2.0-0:
Installed: 2.36.11-2
Candidate: 2.36.11-2
Version table:
2.36.11-2 500
500 http://gb.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
*** 2.36.11-2 100
100 /var/lib/dpkg/status
libglib2.0-0:
Installed: 2.56.3-0ubuntu0.18.04.1
Candidate: 2.56.3-0ubuntu0.18.04.1
Version table:
*** 2.56.3-0ubuntu0.18.04.1 500
500 http://gb.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
100 /var/lib/dpkg/status
2.56.2-0ubuntu0.18.04.2 500
500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
2.56.1-2ubuntu1 500
500 http://gb.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
apt 18.04
Having an issue updating Ubuntu 18.04 install
sudo apt update
works fine, then
sudo apt upgrade
fails with
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies.
libgdk-pixbuf2.0-0 : Depends: libglib2.0-0 (= 6= 2.48.0) but 2.56.3-0ubuntu0.18.04.1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
then running:
sudo apt --fix-broken install
gives
The following additional packages will be installed:
libgdk-pixbuf2.0-0
The following packages will be upgraded:
libgdk-pixbuf2.0-0
followed by:
dpkg: warning: parsing file '/var/lib/dpkg/status' near line 14881 package 'libgdk-pixbuf2.0-0:amd64':
'Depends' field, reference to 'libglib2.0-0':
implicit exact match on version number, suggest using '=' instead
dpkg: error: parsing file '/var/lib/dpkg/status' near line 14881 package 'libgdk-pixbuf2.0-0:amd64':
'Depends' field, reference to 'libglib2.0-0': version contains ' '
E: Sub-process /usr/bin/dpkg returned an error code (2)
edit:
$ apt-cache policy libgdk-pixbuf2.0-0:amd64 libglib2.0-0
libgdk-pixbuf2.0-0:
Installed: 2.36.11-2
Candidate: 2.36.11-2
Version table:
2.36.11-2 500
500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
*** 2.36.11-2 100
100 /var/lib/dpkg/status
libglib2.0-0:
Installed: 2.56.3-0ubuntu0.18.04.1
Candidate: 2.56.3-0ubuntu0.18.04.1
Version table:
*** 2.56.3-0ubuntu0.18.04.1 100
100 /var/lib/dpkg/status
2.56.1-2ubuntu1 500
500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
edit2:
after re-enabling the package sources
$ sudo apt update
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Hit:2 http://gb.archive.ubuntu.com/ubuntu bionic InRelease
Get:3 http://gb.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Fetched 177 kB in 0s (384 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
122 packages can be upgraded. Run 'apt list --upgradable' to see them.
then
$ sudo apt full-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies.
libgdk-pixbuf2.0-0 : Depends: libglib2.0-0 (= 6= 2.48.0) but 2.56.3-0ubuntu0.18.04.1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
$ apt-cache policy libgdk-pixbuf2.0-0:amd64 libglib2.0-0
libgdk-pixbuf2.0-0:
Installed: 2.36.11-2
Candidate: 2.36.11-2
Version table:
2.36.11-2 500
500 http://gb.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
*** 2.36.11-2 100
100 /var/lib/dpkg/status
libglib2.0-0:
Installed: 2.56.3-0ubuntu0.18.04.1
Candidate: 2.56.3-0ubuntu0.18.04.1
Version table:
*** 2.56.3-0ubuntu0.18.04.1 500
500 http://gb.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
100 /var/lib/dpkg/status
2.56.2-0ubuntu0.18.04.2 500
500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
2.56.1-2ubuntu1 500
500 http://gb.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
apt 18.04
apt 18.04
edited Jan 28 at 9:05
N0rbert
23.1k649110
23.1k649110
asked Jan 28 at 8:17
petepete
83
83
1
Please add output ofapt-cache policy libgdk-pixbuf2.0-0:amd64 libglib2.0-0
to the question.
– N0rbert
Jan 28 at 8:42
1
For me it seems that you have not enabled bionic-security and bionic-updates pockets of repositories. Please enable them and retry withsudo apt update
,sudo apt full-upgrade
.
– N0rbert
Jan 28 at 8:51
Try my updated answer.
– N0rbert
Jan 28 at 9:02
Thanks - I get the same error as before: "dpkg: error: parsing file '/var/lib/dpkg/status' near line 14881 package 'libgdk-pixbuf2.0-0:amd64': " - the line in questions reads "Depends: libc6 (>= 2.14), libglib2.0-0 (6= 2.48.0), libjpeg8 (>= 8c), libpng16-16 (>= 1.6.2-1), libtiff5 (>= 4.0.3), libx11-6, shared-mime-info, libgdk-pixbuf2.0-common (= 2.36.11-2)"
– pete
Jan 28 at 9:09
1
Thanks for your help - I fixed it by editing the /var/lib/dpkg/status file and changing libglib2.0-0(6=2.48.0) to read (=2.48.0) - then did an apt update/upgrade
– pete
Jan 28 at 9:35
|
show 1 more comment
1
Please add output ofapt-cache policy libgdk-pixbuf2.0-0:amd64 libglib2.0-0
to the question.
– N0rbert
Jan 28 at 8:42
1
For me it seems that you have not enabled bionic-security and bionic-updates pockets of repositories. Please enable them and retry withsudo apt update
,sudo apt full-upgrade
.
– N0rbert
Jan 28 at 8:51
Try my updated answer.
– N0rbert
Jan 28 at 9:02
Thanks - I get the same error as before: "dpkg: error: parsing file '/var/lib/dpkg/status' near line 14881 package 'libgdk-pixbuf2.0-0:amd64': " - the line in questions reads "Depends: libc6 (>= 2.14), libglib2.0-0 (6= 2.48.0), libjpeg8 (>= 8c), libpng16-16 (>= 1.6.2-1), libtiff5 (>= 4.0.3), libx11-6, shared-mime-info, libgdk-pixbuf2.0-common (= 2.36.11-2)"
– pete
Jan 28 at 9:09
1
Thanks for your help - I fixed it by editing the /var/lib/dpkg/status file and changing libglib2.0-0(6=2.48.0) to read (=2.48.0) - then did an apt update/upgrade
– pete
Jan 28 at 9:35
1
1
Please add output of
apt-cache policy libgdk-pixbuf2.0-0:amd64 libglib2.0-0
to the question.– N0rbert
Jan 28 at 8:42
Please add output of
apt-cache policy libgdk-pixbuf2.0-0:amd64 libglib2.0-0
to the question.– N0rbert
Jan 28 at 8:42
1
1
For me it seems that you have not enabled bionic-security and bionic-updates pockets of repositories. Please enable them and retry with
sudo apt update
, sudo apt full-upgrade
.– N0rbert
Jan 28 at 8:51
For me it seems that you have not enabled bionic-security and bionic-updates pockets of repositories. Please enable them and retry with
sudo apt update
, sudo apt full-upgrade
.– N0rbert
Jan 28 at 8:51
Try my updated answer.
– N0rbert
Jan 28 at 9:02
Try my updated answer.
– N0rbert
Jan 28 at 9:02
Thanks - I get the same error as before: "dpkg: error: parsing file '/var/lib/dpkg/status' near line 14881 package 'libgdk-pixbuf2.0-0:amd64': " - the line in questions reads "Depends: libc6 (>= 2.14), libglib2.0-0 (6= 2.48.0), libjpeg8 (>= 8c), libpng16-16 (>= 1.6.2-1), libtiff5 (>= 4.0.3), libx11-6, shared-mime-info, libgdk-pixbuf2.0-common (= 2.36.11-2)"
– pete
Jan 28 at 9:09
Thanks - I get the same error as before: "dpkg: error: parsing file '/var/lib/dpkg/status' near line 14881 package 'libgdk-pixbuf2.0-0:amd64': " - the line in questions reads "Depends: libc6 (>= 2.14), libglib2.0-0 (6= 2.48.0), libjpeg8 (>= 8c), libpng16-16 (>= 1.6.2-1), libtiff5 (>= 4.0.3), libx11-6, shared-mime-info, libgdk-pixbuf2.0-common (= 2.36.11-2)"
– pete
Jan 28 at 9:09
1
1
Thanks for your help - I fixed it by editing the /var/lib/dpkg/status file and changing libglib2.0-0(6=2.48.0) to read (=2.48.0) - then did an apt update/upgrade
– pete
Jan 28 at 9:35
Thanks for your help - I fixed it by editing the /var/lib/dpkg/status file and changing libglib2.0-0(6=2.48.0) to read (=2.48.0) - then did an apt update/upgrade
– pete
Jan 28 at 9:35
|
show 1 more comment
2 Answers
2
active
oldest
votes
Try to download both problematic packages and then force their installation with:
apt-get download libgdk-pixbuf2.0-0=2.36.11-2 libglib2.0-0=2.56.3-0ubuntu0.18.04.1
sudo dpkg -i --force-all lib*.deb
Thanks still get the error: dpkg: warning: parsing file '/var/lib/dpkg/status' near line 14881 package 'libgdk-pixbuf2.0-0:amd64': 'Depends' field, reference to 'libglib2.0-0': implicit exact match on version number, suggest using '=' instead dpkg: error: parsing file '/var/lib/dpkg/status' near line 14881 package 'libgdk-pixbuf2.0-0:amd64': 'Depends' field, reference to 'libglib2.0-0': version contains ' '
– pete
Jan 28 at 8:40
add a comment |
I fixed it by editing the /var/lib/dpkg/status file and changing libglib2.0-0(6=2.48.0) to read (=2.48.0) - then did an apt update/upgrade
add a comment |
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',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1113458%2fapt-upgrade-fails-with-libglib-libgdk-error%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Try to download both problematic packages and then force their installation with:
apt-get download libgdk-pixbuf2.0-0=2.36.11-2 libglib2.0-0=2.56.3-0ubuntu0.18.04.1
sudo dpkg -i --force-all lib*.deb
Thanks still get the error: dpkg: warning: parsing file '/var/lib/dpkg/status' near line 14881 package 'libgdk-pixbuf2.0-0:amd64': 'Depends' field, reference to 'libglib2.0-0': implicit exact match on version number, suggest using '=' instead dpkg: error: parsing file '/var/lib/dpkg/status' near line 14881 package 'libgdk-pixbuf2.0-0:amd64': 'Depends' field, reference to 'libglib2.0-0': version contains ' '
– pete
Jan 28 at 8:40
add a comment |
Try to download both problematic packages and then force their installation with:
apt-get download libgdk-pixbuf2.0-0=2.36.11-2 libglib2.0-0=2.56.3-0ubuntu0.18.04.1
sudo dpkg -i --force-all lib*.deb
Thanks still get the error: dpkg: warning: parsing file '/var/lib/dpkg/status' near line 14881 package 'libgdk-pixbuf2.0-0:amd64': 'Depends' field, reference to 'libglib2.0-0': implicit exact match on version number, suggest using '=' instead dpkg: error: parsing file '/var/lib/dpkg/status' near line 14881 package 'libgdk-pixbuf2.0-0:amd64': 'Depends' field, reference to 'libglib2.0-0': version contains ' '
– pete
Jan 28 at 8:40
add a comment |
Try to download both problematic packages and then force their installation with:
apt-get download libgdk-pixbuf2.0-0=2.36.11-2 libglib2.0-0=2.56.3-0ubuntu0.18.04.1
sudo dpkg -i --force-all lib*.deb
Try to download both problematic packages and then force their installation with:
apt-get download libgdk-pixbuf2.0-0=2.36.11-2 libglib2.0-0=2.56.3-0ubuntu0.18.04.1
sudo dpkg -i --force-all lib*.deb
edited Jan 28 at 9:02
answered Jan 28 at 8:38
N0rbertN0rbert
23.1k649110
23.1k649110
Thanks still get the error: dpkg: warning: parsing file '/var/lib/dpkg/status' near line 14881 package 'libgdk-pixbuf2.0-0:amd64': 'Depends' field, reference to 'libglib2.0-0': implicit exact match on version number, suggest using '=' instead dpkg: error: parsing file '/var/lib/dpkg/status' near line 14881 package 'libgdk-pixbuf2.0-0:amd64': 'Depends' field, reference to 'libglib2.0-0': version contains ' '
– pete
Jan 28 at 8:40
add a comment |
Thanks still get the error: dpkg: warning: parsing file '/var/lib/dpkg/status' near line 14881 package 'libgdk-pixbuf2.0-0:amd64': 'Depends' field, reference to 'libglib2.0-0': implicit exact match on version number, suggest using '=' instead dpkg: error: parsing file '/var/lib/dpkg/status' near line 14881 package 'libgdk-pixbuf2.0-0:amd64': 'Depends' field, reference to 'libglib2.0-0': version contains ' '
– pete
Jan 28 at 8:40
Thanks still get the error: dpkg: warning: parsing file '/var/lib/dpkg/status' near line 14881 package 'libgdk-pixbuf2.0-0:amd64': 'Depends' field, reference to 'libglib2.0-0': implicit exact match on version number, suggest using '=' instead dpkg: error: parsing file '/var/lib/dpkg/status' near line 14881 package 'libgdk-pixbuf2.0-0:amd64': 'Depends' field, reference to 'libglib2.0-0': version contains ' '
– pete
Jan 28 at 8:40
Thanks still get the error: dpkg: warning: parsing file '/var/lib/dpkg/status' near line 14881 package 'libgdk-pixbuf2.0-0:amd64': 'Depends' field, reference to 'libglib2.0-0': implicit exact match on version number, suggest using '=' instead dpkg: error: parsing file '/var/lib/dpkg/status' near line 14881 package 'libgdk-pixbuf2.0-0:amd64': 'Depends' field, reference to 'libglib2.0-0': version contains ' '
– pete
Jan 28 at 8:40
add a comment |
I fixed it by editing the /var/lib/dpkg/status file and changing libglib2.0-0(6=2.48.0) to read (=2.48.0) - then did an apt update/upgrade
add a comment |
I fixed it by editing the /var/lib/dpkg/status file and changing libglib2.0-0(6=2.48.0) to read (=2.48.0) - then did an apt update/upgrade
add a comment |
I fixed it by editing the /var/lib/dpkg/status file and changing libglib2.0-0(6=2.48.0) to read (=2.48.0) - then did an apt update/upgrade
I fixed it by editing the /var/lib/dpkg/status file and changing libglib2.0-0(6=2.48.0) to read (=2.48.0) - then did an apt update/upgrade
answered Jan 28 at 11:15
petepete
83
83
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1113458%2fapt-upgrade-fails-with-libglib-libgdk-error%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Please add output of
apt-cache policy libgdk-pixbuf2.0-0:amd64 libglib2.0-0
to the question.– N0rbert
Jan 28 at 8:42
1
For me it seems that you have not enabled bionic-security and bionic-updates pockets of repositories. Please enable them and retry with
sudo apt update
,sudo apt full-upgrade
.– N0rbert
Jan 28 at 8:51
Try my updated answer.
– N0rbert
Jan 28 at 9:02
Thanks - I get the same error as before: "dpkg: error: parsing file '/var/lib/dpkg/status' near line 14881 package 'libgdk-pixbuf2.0-0:amd64': " - the line in questions reads "Depends: libc6 (>= 2.14), libglib2.0-0 (6= 2.48.0), libjpeg8 (>= 8c), libpng16-16 (>= 1.6.2-1), libtiff5 (>= 4.0.3), libx11-6, shared-mime-info, libgdk-pixbuf2.0-common (= 2.36.11-2)"
– pete
Jan 28 at 9:09
1
Thanks for your help - I fixed it by editing the /var/lib/dpkg/status file and changing libglib2.0-0(6=2.48.0) to read (=2.48.0) - then did an apt update/upgrade
– pete
Jan 28 at 9:35