LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problem when trying to update and upgrade (https://www.linuxquestions.org/questions/linux-newbie-8/problem-when-trying-to-update-and-upgrade-4175604928/)

SifuMaster 04-29-2017 04:15 PM

Problem when trying to update and upgrade
 
When i try to update and upgrade via terminal i got the following output with all these similar warnings and errors at the end.Is there anything i can do to fix it?Thanks

http://paste.ubuntu.com/24481745/

ondoho 04-30-2017 01:34 AM

https://ubuntuforums.org/showthread.php?t=2247453
https://serverfault.com/questions/43...missing#430712

SifuMaster 04-30-2017 04:18 AM

I figured out i got no folder named dpkg. I must have deleted it. Dont know if this helps. I tried to do this https://askubuntu.com/questions/3833...dpkg-directory , but it doesnt work for me, because i get the following output

Code:

$ apt-get download dpkg
Err:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 dpkg amd64 1.18.4ubuntu1.2
Could not open file /usr/bin/dpkg_1.18.4ubuntu1.2_amd64.deb - open (13: Permission denied) [IP: 91.189.88.152 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/poo...u1.2_amd64.deb Could not open file /usr/bin/dpkg_1.18.4ubuntu1.2_amd64.deb - open (13: Permission denied) [IP: 91.189.88.152 80]

ondoho 04-30-2017 01:08 PM

Quote:

Originally Posted by SifuMaster (Post 5704162)
I figured out i got no folder named dpkg. I must have deleted it. Dont know if this helps. I tried to do this https://askubuntu.com/questions/3833...dpkg-directory , but it doesnt work for me, because i get the following output

Code:

$ apt-get download dpkg
Err:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 dpkg amd64 1.18.4ubuntu1.2
Could not open file /usr/bin/dpkg_1.18.4ubuntu1.2_amd64.deb - open (13: Permission denied) [IP: 91.189.88.152 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/poo...u1.2_amd64.deb Could not open file /usr/bin/dpkg_1.18.4ubuntu1.2_amd64.deb - open (13: Permission denied) [IP: 91.189.88.152 80]

your link is broken.
i don't know what you did.
anyhow, don't just link to some askubuntu article, but SHOW us what you did, step by step.

what you did show suggests that
- you downloaded the package without superuser privileges, which i think is correct in this situation
- you are in the /usr/bin directory, for some reason (why?), for which you con't have write permission.

so just try again, but this time enter
Code:

cd "$HOME"
before you issue that command.


All times are GMT -5. The time now is 08:30 PM.