LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-05-2017, 01:54 PM   #31
THE PHANTOM
Member
 
Registered: Mar 2016
Posts: 94

Original Poster
Rep: Reputation: Disabled

i did it and same that last one:

Quote:
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
 
Old 07-05-2017, 01:55 PM   #32
THE PHANTOM
Member
 
Registered: Mar 2016
Posts: 94

Original Poster
Rep: Reputation: Disabled
also i ran updates a few minutes ago from software manager and everything gone successfully. after i did restart as it required.

Last edited by THE PHANTOM; 07-05-2017 at 01:57 PM.
 
Old 07-05-2017, 02:02 PM   #33
jviray2011
LQ Newbie
 
Registered: Jul 2017
Distribution: Kali, Ubuntu, CentOS
Posts: 8

Rep: Reputation: Disabled
Quote:
Originally Posted by THE PHANTOM View Post
also i ran updates a few minutes ago from software manager and everything gone successfully. after i did restart as it required.
now resolved?
 
Old 07-05-2017, 02:02 PM   #34
erik2282
Member
 
Registered: May 2011
Location: TX
Distribution: Debian
Posts: 758

Rep: Reputation: 210Reputation: 210Reputation: 210
Im not sure why you're getting permission denied. Maybe with sudo you dont have access to update/upgrade?? Try su - to root account and then try update/upgrade.
 
1 members found this post helpful.
Old 07-05-2017, 02:18 PM   #35
jviray2011
LQ Newbie
 
Registered: Jul 2017
Distribution: Kali, Ubuntu, CentOS
Posts: 8

Rep: Reputation: Disabled
Quote:
Originally Posted by THE PHANTOM View Post
i did it and same that last one:
sometimes, i got this error most of the time, it executes the update but you cannot see visibly whether it is updating or not.
 
Old 07-05-2017, 02:30 PM   #36
THE PHANTOM
Member
 
Registered: Mar 2016
Posts: 94

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by erik2282 View Post
Im not sure why you're getting permission denied. Maybe with sudo you dont have access to update/upgrade?? Try su - to root account and then try update/upgrade.
I tried with su and everything got fine

Quote:
apt-get update && apt-get upgrade
Ign http://ftp.debian.org jessie InRelease
Hit http://ftp.debian.org jessie-updates InRelease
Hit http://ftp.debian.org jessie-backports InRelease
Hit http://ftp.debian.org jessie Release.gpg
Hit http://security.debian.org jessie/updates InRelease
Get:1 http://ftp.debian.org jessie-updates/main amd64 Packages/DiffIndex [8,392 B]
Hit http://ftp.debian.org jessie-updates/contrib amd64 Packages
Get:2 http://ftp.debian.org jessie-updates/non-free amd64 Packages/DiffIndex [736 B]
Hit http://security.debian.org jessie/updates/main amd64 Packages
Hit http://ftp.debian.org jessie-updates/contrib Translation-en
Get:3 http://ftp.debian.org jessie-updates/main Translation-en/DiffIndex [3,196 B]
Get:4 http://ftp.debian.org jessie-updates/non-free Translation-en/DiffIndex [736 B]
Hit http://security.debian.org jessie/updates/contrib amd64 Packages
Hit http://ftp.debian.org jessie Release
Get:5 http://ftp.debian.org jessie-backports/main amd64 Packages/DiffIndex [27.8 kB]
Hit http://security.debian.org jessie/updates/non-free amd64 Packages
Get:6 http://ftp.debian.org jessie-backports/contrib amd64 Packages/DiffIndex [24.6 kB]
Get:7 http://ftp.debian.org jessie-backports/non-free amd64 Packages/DiffIndex [22.4 kB]
Get:8 http://ftp.debian.org jessie-backports/contrib Translation-en/DiffIndex [6,976 B]
Hit http://security.debian.org jessie/updates/contrib Translation-en
Get:9 http://ftp.debian.org jessie-backports/main Translation-en/DiffIndex [27.8 kB]
Get:10 http://ftp.debian.org jessie-backports/non-free Translation-en/DiffIndex [16.7 kB]
Hit http://security.debian.org jessie/updates/main Translation-en
Hit http://ftp.debian.org jessie/main amd64 Packages
Hit http://ftp.debian.org jessie/contrib amd64 Packages
Hit http://ftp.debian.org jessie/non-free amd64 Packages
Hit http://security.debian.org jessie/updates/non-free Translation-en
Hit http://ftp.debian.org jessie/contrib Translation-en
Hit http://ftp.debian.org jessie/main Translation-en
Hit http://ftp.debian.org jessie/non-free Translation-en
Fetched 139 kB in 4s (32.4 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... The following packages were automatically installed and are no longer required:
docutils-common docutils-doc firebird2.5-common firebird2.5-common-doc firebird2.5-server-common libart-2.0-2
libasprintf0c2 libcmis-0.4-4 libegl1-mesa-drivers libelfg0 libfbclient2 libfbembed2.5 libgltf-0.0-0 libllvm3.5
libopenvg1-mesa liborcus-0.8-0 libreoffice-sdbc-firebird libwps-0.3-3 linux-image-3.16.0-4-amd64 python-defusedxml
python-docutils python-imaging python-pexpect python-pil python-ptyprocess python-pygments python-renderpm
python-reportlab python-reportlab-accel python-roman python-soappy python-wstools
Use 'apt-get autoremove' to remove them.
Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
 
Old 07-05-2017, 02:32 PM   #37
THE PHANTOM
Member
 
Registered: Mar 2016
Posts: 94

Original Poster
Rep: Reputation: Disabled
what is ,,Use 'apt-get autoremove' to remove them" should i run it or? is it important?

thanks for replay and your support erik2282 and all of you who give me their time. Thanks.

Last edited by THE PHANTOM; 07-05-2017 at 02:33 PM.
 
Old 07-05-2017, 02:37 PM   #38
erik2282
Member
 
Registered: May 2011
Location: TX
Distribution: Debian
Posts: 758

Rep: Reputation: 210Reputation: 210Reputation: 210
Yes. go ahead and run it.

Code:
# apt-get autoremove
From the man page:

Code:
autoremove
autoremove is used to remove packages that were automatically
installed to satisfy dependencies for some package and that are no
more needed.
 
1 members found this post helpful.
Old 07-05-2017, 02:44 PM   #39
THE PHANTOM
Member
 
Registered: Mar 2016
Posts: 94

Original Poster
Rep: Reputation: Disabled
i ran it from su and that is output:
Quote:
apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
docutils-common docutils-doc firebird2.5-common firebird2.5-common-doc firebird2.5-server-common libart-2.0-2
libasprintf0c2 libcmis-0.4-4 libegl1-mesa-drivers libelfg0 libfbclient2 libfbembed2.5 libgltf-0.0-0 libllvm3.5
libopenvg1-mesa liborcus-0.8-0 libreoffice-sdbc-firebird libwps-0.3-3 linux-image-3.16.0-4-amd64 python-defusedxml
python-docutils python-imaging python-pexpect python-pil python-ptyprocess python-pygments python-renderpm
python-reportlab python-reportlab-accel python-roman python-soappy python-wstools
0 upgraded, 0 newly installed, 32 to remove and 0 not upgraded.
After this operation, 226 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 106644 files and directories currently installed.)
Removing python-soappy (0.12.22-1) ...
Removing python-wstools (0.4.3-2) ...
Removing python-docutils (0.12+dfsg-1) ...
Removing docutils-common (0.12+dfsg-1) ...
Removing docutils-doc (0.12+dfsg-1) ...
Removing libreoffice-sdbc-firebird (1:4.3.3-2+deb8u7) ...
Removing libfbembed2.5 (2.5.3.26778.ds4-5+deb8u1) ...
Removing firebird2.5-server-common (2.5.3.26778.ds4-5+deb8u1) ...
Removing libfbclient2:amd64 (2.5.3.26778.ds4-5+deb8u1) ...
Removing firebird2.5-common (2.5.3.26778.ds4-5+deb8u1) ...
Removing firebird2.5-common-doc (2.5.3.26778.ds4-5+deb8u1) ...
Removing python-renderpm:amd64 (3.1.8-3+deb8u1) ...
Removing libart-2.0-2:amd64 (2.3.21-2) ...
Removing libasprintf0c2:amd64 (0.19.8.1-1~bpo8+1) ...
Removing libcmis-0.4-4 (0.4.1-7) ...
Removing libegl1-mesa-drivers:amd64 (13.0.6-1~bpo8+1) ...
Removing libelfg0:amd64 (0.8.13-5) ...
Removing libgltf-0.0-0 (0.0.2-2) ...
Removing libllvm3.5:amd64 (1:3.5.2-3~bpo8+2) ...
Removing libopenvg1-mesa:amd64 (10.3.2-1+deb8u1) ...
Removing liborcus-0.8-0 (0.7.0+dfsg-9) ...
Removing libwps-0.3-3 (0.3.0-2) ...
Removing linux-image-3.16.0-4-amd64 (3.16.43-2+deb8u2) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-3.16.0-4-amd64
/etc/kernel/postrm.d/zz-update-grub:
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-4.9.0-0.bpo.3-amd64
Found initrd image: /boot/initrd.img-4.9.0-0.bpo.3-amd64
Found linux image: /boot/vmlinuz-4.9.0-0.bpo.2-amd64
Found initrd image: /boot/initrd.img-4.9.0-0.bpo.2-amd64
Found Windows Recovery Environment (loader) on /dev/sda1
done
Removing python-defusedxml (0.4.1-2) ...
Removing python-imaging (3.4.2-1~bpo8+1) ...
Removing python-pexpect (4.2.1-1~bpo8+1) ...
Removing python-pil:amd64 (3.4.2-1~bpo8+1) ...
Removing python-ptyprocess (0.5.1-1~bpo8+1) ...
Removing python-pygments (2.2.0+dfsg-1~bpo8+1) ...
Removing python-reportlab (3.1.8-3+deb8u1) ...
Removing python-reportlab-accel:amd64 (3.1.8-3+deb8u1) ...
Removing python-roman (2.0.0-1) ...
Processing triggers for shared-mime-info (1.5-2~bpo8+1) ...
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Unknown media type in type 'uri/mms'
Unknown media type in type 'uri/mmst'
Unknown media type in type 'uri/mmsu'
Unknown media type in type 'uri/pnm'
Unknown media type in type 'uri/rtspt'
Unknown media type in type 'uri/rtspu'
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for libc-bin (2.19-18+deb8u10) ...
is that ok now? should i do any step next?

Last edited by THE PHANTOM; 07-05-2017 at 02:46 PM.
 
1 members found this post helpful.
Old 07-05-2017, 02:46 PM   #40
erik2282
Member
 
Registered: May 2011
Location: TX
Distribution: Debian
Posts: 758

Rep: Reputation: 210Reputation: 210Reputation: 210
reboot just in case and then run apt-get update && upgrade one more time..
 
1 members found this post helpful.
Old 07-05-2017, 02:49 PM   #41
erik2282
Member
 
Registered: May 2011
Location: TX
Distribution: Debian
Posts: 758

Rep: Reputation: 210Reputation: 210Reputation: 210
Also, since we removed the mozilla stuff from the repos, if you want the latest version of Firefox from the debian repos, run:

Code:
apt-get install firefox-esr
This will get you up to 52.2.0 as of today.
 
1 members found this post helpful.
Old 07-05-2017, 02:55 PM   #42
THE PHANTOM
Member
 
Registered: Mar 2016
Posts: 94

Original Poster
Rep: Reputation: Disabled
ok sir thanks for everything. i will run that commands
Quote:
apt-get update && upgrade
twice a month right?
 
Old 07-05-2017, 02:57 PM   #43
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 8,016
Blog Entries: 5

Rep: Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859Reputation: 2859
Quote:
Originally Posted by erik2282 View Post
reboot just in case and then run apt-get update && upgrade one more time..
apt-get update && apt-get upgrade
 
2 members found this post helpful.
Old 07-05-2017, 03:00 PM   #44
erik2282
Member
 
Registered: May 2011
Location: TX
Distribution: Debian
Posts: 758

Rep: Reputation: 210Reputation: 210Reputation: 210
Quote:
Originally Posted by THE PHANTOM View Post
also i have one question: what should i do most that my system keep always updated? what commands or methods u advice me sir? Thanks for help and yout time and sorry for disturbing u.
On my KDE desktop there is a system notification on my system tray that alerts me when there are updates and usually let that utility run and update my system. I'm not sure what its called but it works great. I have a debian jessie machine at work with Mate desktop and that auto-check utility is not there, well maybe i just need to install it, but I dont care. I just manually run the update/upgrade commands every couple weeks. Im sure you can make a cron job to do this as well.
 
1 members found this post helpful.
Old 07-05-2017, 03:01 PM   #45
erik2282
Member
 
Registered: May 2011
Location: TX
Distribution: Debian
Posts: 758

Rep: Reputation: 210Reputation: 210Reputation: 210
Quote:
Originally Posted by hydrurga View Post
apt-get update && apt-get upgrade
Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Failed to fetch Hasan5599 Linux - Newbie 9 03-22-2016 02:58 AM
failed to fetch dyeadon Linux - Newbie 2 07-26-2011 07:52 AM
[SOLVED] failed to fetch cdrom linux/unix87 Linux - Newbie 5 11-06-2010 10:22 PM
W: Failed to fetch http:...............!!! vin_akleh Linux - Newbie 5 12-30-2009 03:19 PM
Sarge - Failed to Fetch fester225 Debian 7 02-16-2005 02:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration