Files list file for package missing — dpkg warning
I want to install Open JDK or Oracle JDK to my machine but I got an error during installation. The error is:
Selecting previously unselected package oracle-java8-installer.
dpkg: warning: files list file for package 'unity-scope-gourmet' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'unity-scope-guayadeque' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'unity-scope-gmusicbrowser' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'unity-scope-manpages' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'unity-scope-firefoxbookmarks' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'unity-scope-gdrive' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'unity-scope-home' missing; assuming package has no files currently installed
E: Sub-process /usr/bin/dpkg returned an error code (2)
I searched on Google and try to something for install/reinstall this packages. Finally i try to remove Unity. I faced this error for my every tries. I am using Xmonad. How can I fix this issue?
software-installation dpkg
add a comment |
I want to install Open JDK or Oracle JDK to my machine but I got an error during installation. The error is:
Selecting previously unselected package oracle-java8-installer.
dpkg: warning: files list file for package 'unity-scope-gourmet' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'unity-scope-guayadeque' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'unity-scope-gmusicbrowser' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'unity-scope-manpages' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'unity-scope-firefoxbookmarks' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'unity-scope-gdrive' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'unity-scope-home' missing; assuming package has no files currently installed
E: Sub-process /usr/bin/dpkg returned an error code (2)
I searched on Google and try to something for install/reinstall this packages. Finally i try to remove Unity. I faced this error for my every tries. I am using Xmonad. How can I fix this issue?
software-installation dpkg
add a comment |
I want to install Open JDK or Oracle JDK to my machine but I got an error during installation. The error is:
Selecting previously unselected package oracle-java8-installer.
dpkg: warning: files list file for package 'unity-scope-gourmet' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'unity-scope-guayadeque' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'unity-scope-gmusicbrowser' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'unity-scope-manpages' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'unity-scope-firefoxbookmarks' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'unity-scope-gdrive' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'unity-scope-home' missing; assuming package has no files currently installed
E: Sub-process /usr/bin/dpkg returned an error code (2)
I searched on Google and try to something for install/reinstall this packages. Finally i try to remove Unity. I faced this error for my every tries. I am using Xmonad. How can I fix this issue?
software-installation dpkg
I want to install Open JDK or Oracle JDK to my machine but I got an error during installation. The error is:
Selecting previously unselected package oracle-java8-installer.
dpkg: warning: files list file for package 'unity-scope-gourmet' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'unity-scope-guayadeque' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'unity-scope-gmusicbrowser' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'unity-scope-manpages' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'unity-scope-firefoxbookmarks' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'unity-scope-gdrive' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'unity-scope-home' missing; assuming package has no files currently installed
E: Sub-process /usr/bin/dpkg returned an error code (2)
I searched on Google and try to something for install/reinstall this packages. Finally i try to remove Unity. I faced this error for my every tries. I am using Xmonad. How can I fix this issue?
software-installation dpkg
software-installation dpkg
edited Apr 30 '17 at 12:58
Stephen Ostermiller
2,57512544
2,57512544
asked Jan 1 '16 at 0:56
Mert SaygıMert Saygı
3113
3113
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
One loop over the seven packages' names to recreate the list-file for each package.
But first run
sudo apt-get autoclean
to remove unneeded DEBs in /var/cache/apt/archives. This is necessary that the following commands work properly.
arch="$(dpkg --print-architecture)"
for p in
unity-scope-gourmet unity-scope-guayadeque unity-scope-gmusicbrowser
unity-scope-manpages unity-scope-firefoxbookmarks unity-scope-gdrive
unity-scope-home
do
find /var/cache/apt/archives -type f -name "${p}_*_${arch}.deb" -exec dpkg-deb --fsys-tarfile {} ; -quit | tar t | cut -f2- -d. | sed 's|^/$|/.|;s|/$||' | sudo tee "/var/lib/dpkg/info/$p.list" > /dev/null
done
sudo chmod -R a+r /var/lib/dpkg/info
Some tests later, the command
sudo apt-get install --reinstall unity-scope-gourmet unity-scope-guayadeque unity-scope-gmusicbrowser unity-scope-manpages unity-scope-firefoxbookmarks unity-scope-gdrive unity-scope-home
should also help.
dpkg-debshouldn't needsudo, thefindcommand should probably be terminated after the first match. And instead ofdpkg-deb -c ... | awk ... |, where you're processingtar's verbose output, you could usetarto print only the paths:dpkg-deb --fsys-tarfile {} | tar t | ...
– muru
Jan 1 '16 at 12:21
Can you explain in detail one command to recreate? What if I do not want toinstallbut toremovethe package?
– Timo
Mar 5 '18 at 19:55
@Timo: If you want to remove the package you should still reinstall it to recreate its file list first and only then remove it, so that Apt knows which files to remove.
– David Foerster
Jul 22 '18 at 5:53
add a comment |
I tried it A.B.'s approach but i faced same error with unity-scope-devhelp. Then, i deleted /var/lib/dpkg/unity-scope-devhelp.list
It Works :)
1
Why didn't you adapt A.B.'s method forunity-scope-devhelp?
– muru
Jan 1 '16 at 16:22
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%2f715558%2ffiles-list-file-for-package-missing-dpkg-warning%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
One loop over the seven packages' names to recreate the list-file for each package.
But first run
sudo apt-get autoclean
to remove unneeded DEBs in /var/cache/apt/archives. This is necessary that the following commands work properly.
arch="$(dpkg --print-architecture)"
for p in
unity-scope-gourmet unity-scope-guayadeque unity-scope-gmusicbrowser
unity-scope-manpages unity-scope-firefoxbookmarks unity-scope-gdrive
unity-scope-home
do
find /var/cache/apt/archives -type f -name "${p}_*_${arch}.deb" -exec dpkg-deb --fsys-tarfile {} ; -quit | tar t | cut -f2- -d. | sed 's|^/$|/.|;s|/$||' | sudo tee "/var/lib/dpkg/info/$p.list" > /dev/null
done
sudo chmod -R a+r /var/lib/dpkg/info
Some tests later, the command
sudo apt-get install --reinstall unity-scope-gourmet unity-scope-guayadeque unity-scope-gmusicbrowser unity-scope-manpages unity-scope-firefoxbookmarks unity-scope-gdrive unity-scope-home
should also help.
dpkg-debshouldn't needsudo, thefindcommand should probably be terminated after the first match. And instead ofdpkg-deb -c ... | awk ... |, where you're processingtar's verbose output, you could usetarto print only the paths:dpkg-deb --fsys-tarfile {} | tar t | ...
– muru
Jan 1 '16 at 12:21
Can you explain in detail one command to recreate? What if I do not want toinstallbut toremovethe package?
– Timo
Mar 5 '18 at 19:55
@Timo: If you want to remove the package you should still reinstall it to recreate its file list first and only then remove it, so that Apt knows which files to remove.
– David Foerster
Jul 22 '18 at 5:53
add a comment |
One loop over the seven packages' names to recreate the list-file for each package.
But first run
sudo apt-get autoclean
to remove unneeded DEBs in /var/cache/apt/archives. This is necessary that the following commands work properly.
arch="$(dpkg --print-architecture)"
for p in
unity-scope-gourmet unity-scope-guayadeque unity-scope-gmusicbrowser
unity-scope-manpages unity-scope-firefoxbookmarks unity-scope-gdrive
unity-scope-home
do
find /var/cache/apt/archives -type f -name "${p}_*_${arch}.deb" -exec dpkg-deb --fsys-tarfile {} ; -quit | tar t | cut -f2- -d. | sed 's|^/$|/.|;s|/$||' | sudo tee "/var/lib/dpkg/info/$p.list" > /dev/null
done
sudo chmod -R a+r /var/lib/dpkg/info
Some tests later, the command
sudo apt-get install --reinstall unity-scope-gourmet unity-scope-guayadeque unity-scope-gmusicbrowser unity-scope-manpages unity-scope-firefoxbookmarks unity-scope-gdrive unity-scope-home
should also help.
dpkg-debshouldn't needsudo, thefindcommand should probably be terminated after the first match. And instead ofdpkg-deb -c ... | awk ... |, where you're processingtar's verbose output, you could usetarto print only the paths:dpkg-deb --fsys-tarfile {} | tar t | ...
– muru
Jan 1 '16 at 12:21
Can you explain in detail one command to recreate? What if I do not want toinstallbut toremovethe package?
– Timo
Mar 5 '18 at 19:55
@Timo: If you want to remove the package you should still reinstall it to recreate its file list first and only then remove it, so that Apt knows which files to remove.
– David Foerster
Jul 22 '18 at 5:53
add a comment |
One loop over the seven packages' names to recreate the list-file for each package.
But first run
sudo apt-get autoclean
to remove unneeded DEBs in /var/cache/apt/archives. This is necessary that the following commands work properly.
arch="$(dpkg --print-architecture)"
for p in
unity-scope-gourmet unity-scope-guayadeque unity-scope-gmusicbrowser
unity-scope-manpages unity-scope-firefoxbookmarks unity-scope-gdrive
unity-scope-home
do
find /var/cache/apt/archives -type f -name "${p}_*_${arch}.deb" -exec dpkg-deb --fsys-tarfile {} ; -quit | tar t | cut -f2- -d. | sed 's|^/$|/.|;s|/$||' | sudo tee "/var/lib/dpkg/info/$p.list" > /dev/null
done
sudo chmod -R a+r /var/lib/dpkg/info
Some tests later, the command
sudo apt-get install --reinstall unity-scope-gourmet unity-scope-guayadeque unity-scope-gmusicbrowser unity-scope-manpages unity-scope-firefoxbookmarks unity-scope-gdrive unity-scope-home
should also help.
One loop over the seven packages' names to recreate the list-file for each package.
But first run
sudo apt-get autoclean
to remove unneeded DEBs in /var/cache/apt/archives. This is necessary that the following commands work properly.
arch="$(dpkg --print-architecture)"
for p in
unity-scope-gourmet unity-scope-guayadeque unity-scope-gmusicbrowser
unity-scope-manpages unity-scope-firefoxbookmarks unity-scope-gdrive
unity-scope-home
do
find /var/cache/apt/archives -type f -name "${p}_*_${arch}.deb" -exec dpkg-deb --fsys-tarfile {} ; -quit | tar t | cut -f2- -d. | sed 's|^/$|/.|;s|/$||' | sudo tee "/var/lib/dpkg/info/$p.list" > /dev/null
done
sudo chmod -R a+r /var/lib/dpkg/info
Some tests later, the command
sudo apt-get install --reinstall unity-scope-gourmet unity-scope-guayadeque unity-scope-gmusicbrowser unity-scope-manpages unity-scope-firefoxbookmarks unity-scope-gdrive unity-scope-home
should also help.
edited Jul 22 '18 at 5:51
David Foerster
28.5k1367113
28.5k1367113
answered Jan 1 '16 at 12:08
A.B.A.B.
69.6k12172266
69.6k12172266
dpkg-debshouldn't needsudo, thefindcommand should probably be terminated after the first match. And instead ofdpkg-deb -c ... | awk ... |, where you're processingtar's verbose output, you could usetarto print only the paths:dpkg-deb --fsys-tarfile {} | tar t | ...
– muru
Jan 1 '16 at 12:21
Can you explain in detail one command to recreate? What if I do not want toinstallbut toremovethe package?
– Timo
Mar 5 '18 at 19:55
@Timo: If you want to remove the package you should still reinstall it to recreate its file list first and only then remove it, so that Apt knows which files to remove.
– David Foerster
Jul 22 '18 at 5:53
add a comment |
dpkg-debshouldn't needsudo, thefindcommand should probably be terminated after the first match. And instead ofdpkg-deb -c ... | awk ... |, where you're processingtar's verbose output, you could usetarto print only the paths:dpkg-deb --fsys-tarfile {} | tar t | ...
– muru
Jan 1 '16 at 12:21
Can you explain in detail one command to recreate? What if I do not want toinstallbut toremovethe package?
– Timo
Mar 5 '18 at 19:55
@Timo: If you want to remove the package you should still reinstall it to recreate its file list first and only then remove it, so that Apt knows which files to remove.
– David Foerster
Jul 22 '18 at 5:53
dpkg-deb shouldn't need sudo, the find command should probably be terminated after the first match. And instead of dpkg-deb -c ... | awk ... | , where you're processing tar's verbose output, you could use tar to print only the paths: dpkg-deb --fsys-tarfile {} | tar t | ...– muru
Jan 1 '16 at 12:21
dpkg-deb shouldn't need sudo, the find command should probably be terminated after the first match. And instead of dpkg-deb -c ... | awk ... | , where you're processing tar's verbose output, you could use tar to print only the paths: dpkg-deb --fsys-tarfile {} | tar t | ...– muru
Jan 1 '16 at 12:21
Can you explain in detail one command to recreate? What if I do not want to
install but to remove the package?– Timo
Mar 5 '18 at 19:55
Can you explain in detail one command to recreate? What if I do not want to
install but to remove the package?– Timo
Mar 5 '18 at 19:55
@Timo: If you want to remove the package you should still reinstall it to recreate its file list first and only then remove it, so that Apt knows which files to remove.
– David Foerster
Jul 22 '18 at 5:53
@Timo: If you want to remove the package you should still reinstall it to recreate its file list first and only then remove it, so that Apt knows which files to remove.
– David Foerster
Jul 22 '18 at 5:53
add a comment |
I tried it A.B.'s approach but i faced same error with unity-scope-devhelp. Then, i deleted /var/lib/dpkg/unity-scope-devhelp.list
It Works :)
1
Why didn't you adapt A.B.'s method forunity-scope-devhelp?
– muru
Jan 1 '16 at 16:22
add a comment |
I tried it A.B.'s approach but i faced same error with unity-scope-devhelp. Then, i deleted /var/lib/dpkg/unity-scope-devhelp.list
It Works :)
1
Why didn't you adapt A.B.'s method forunity-scope-devhelp?
– muru
Jan 1 '16 at 16:22
add a comment |
I tried it A.B.'s approach but i faced same error with unity-scope-devhelp. Then, i deleted /var/lib/dpkg/unity-scope-devhelp.list
It Works :)
I tried it A.B.'s approach but i faced same error with unity-scope-devhelp. Then, i deleted /var/lib/dpkg/unity-scope-devhelp.list
It Works :)
answered Jan 1 '16 at 13:20
Mert SaygıMert Saygı
3113
3113
1
Why didn't you adapt A.B.'s method forunity-scope-devhelp?
– muru
Jan 1 '16 at 16:22
add a comment |
1
Why didn't you adapt A.B.'s method forunity-scope-devhelp?
– muru
Jan 1 '16 at 16:22
1
1
Why didn't you adapt A.B.'s method for
unity-scope-devhelp?– muru
Jan 1 '16 at 16:22
Why didn't you adapt A.B.'s method for
unity-scope-devhelp?– muru
Jan 1 '16 at 16:22
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%2f715558%2ffiles-list-file-for-package-missing-dpkg-warning%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