after run sudo apt upgrade in Ubuntu 18.04 LTS show error :  ~# apt upgrade Reading package lists... Done Building dependency tree        Reading state information... Done Calculating upgrade... Done The following packages were automatically installed and are no longer required:   kwayland-data libboost-filesystem1.62.0 libboost-iostreams1.62.0   libboost-serialization1.62.0 libboost-system1.62.0 libcapnp-0.5.3   libcapnp-0.6.1 libdfu1 libfam0 libfwupd1 libhfstospell9 libkf5archive5   libkf5attica5 libkf5auth-data libkf5auth5 libkf5bookmarks-data   libkf5codecs-data libkf5codecs5 libkf5completion-data libkf5completion5   libkf5config-bin libkf5config-data libkf5configcore5 libkf5configgui5   libkf5configwidgets-data libkf5coreaddons-data libkf5coreaddons5   libkf5crash5 libkf5dbusaddons-bin libkf5dbusaddons-data libkf5dbusaddons5   libkf5doctools5 libkf5globalaccel-bin libkf5globalaccel-data   libkf5globalaccel5 libkf5globalaccelprivate5 libkf5guiaddons5   libkf5i18n-data libkf5iconthemes-data libkf5idletime5 libkf5itemviews-data   libkf5itemviews5 libkf5jobwidgets-data libkf5jobwidgets5   libkf5kdelibs4support-data libkf5kiontlm5 libkf5mediaplayer-data   libkf5notifications-data libkf5notifications5 libkf5parts-data   libkf5service-data libkf5solid5 libkf5solid5-data libkf5sonnet5-data   libkf5sonnetcore5 libkf5sonnetui5 libkf5textwidgets-data libkf5wallet-data   libkf5waylandclient5 libkf5widgetsaddons-data libkf5widgetsaddons5   libkf5windowsystem-data libkf5windowsystem5 libkf5xmlgui-data   liblttng-ust-ctl4 liblttng-ust0 libmirclient9 libmircommon7 libmircore1   libmirprotobuf3 libphonon4qt5-4 libpolkit-qt5-1-1 libprocess-cpp3   libprotobuf-lite10 libqt5printsupport5 libqt5test5 libqt5xml5 libtgvoip1.0   libunity-api0 liburcu6 libvoikko1 libzmqpp4 phonon4qt5   phonon4qt5-backend-vlc sonnet-plugins ubuntu-app-launch Use 'apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2 not fully installed or removed. Need to get 0 B/153 kB of archives. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n]  dpkg: error processing package fonts-tlwg-sawasdee-ttf (--configure):  package is in a very bad inconsistent state; you should  reinstall it before attempting configuration No apport report written because the error message indicates its a followup error from a previous failure.                           dpkg: dependency problems prevent configuration of fonts-tlwg-sawasdee:  fonts-tlwg-sawasdee depends on fonts-tlwg-sawasdee-ttf | fonts-tlwg-sawasdee-otf; however:   Package fonts-tlwg-sawasdee-ttf is not configured yet.   Package fonts-tlwg-sawasdee-otf is not installed.  dpkg: error processing package fonts-tlwg-sawasdee (--configure):  dependency problems - leaving unconfigured Errors were encountered while processing:  fonts-tlwg-sawasdee-ttf  fonts-tlwg-sawasdee E: Sub-process /usr/bin/dpkg returned an error code (1)
I can't update my system because it freezes while installing a third-party update (zramswap-enabler)! Sometimes I get the following message in Update manager:  Could not initialize the package information An unresolvable problem occurred while initializing the package information. Please report this bug against the 'update-manager' package and include the following error message: E:The package zramswap-enabler needs to be reinstalled, but I can't find an archive for it.  I tried to remove the zramswap-enabler, but it's impossible because I get the following message: dpkg: error processing zramswap-enabler (--remove):  Package is in a very bad inconsistent state - you should  reinstall it before attempting a removal. Errors were encountered while processing:  zramswap-enabler E: Sub-process /usr/bin/dpkg returned an error code (1)  Actually I would really reinstall that package, but it is unable to do it! If I remove this third-party PPA then the system is warning me about a very very serious problem. So why can I not install/reinstall/remove/update this package and why freezes the updater if I try to update?
This story had a researcher landing on an uncharted planet to see if it was any good for mining some type of mineral/metal.  Whilst there he encounters this type of ball that chases him all over the planet. He ends up finding this ball’s collection of other things it has caught including animals all the way back to the dinosaurs.  On the ball it has the writing '+/-7.  In the end it chases him for so long that he weighs too little for the balls 'collection'.  Any ideas greatly appreciated. Short story (50s? 60s?) with a man trapped inside a sentient cave Destructors of builtin types (int, char etc..) In C++ the following code gives a compiler error:  void destruct1 (int * item) {   item-&gt;~int(); }   This code is nearly the same, I just typedef the int to another type and something magic happens:  typedef int myint;  void destruct2 (myint * item) {   item-&gt;~myint(); }   Why does the second code work? Does an int get a destructor just because it has been typedefed?  In case you wonder why one ever would like to do this: This comes from refactoring C++ code. We're removing the standard heap and replacing it with selfmade pools. This requires us to call placement-new and the destructors. I know that calling destructors for primitive types is useless, but we want them in the code nevertheless in case we later replace PODs with real classes.  Finding out that naked int's don't work but typedefed ones do was quite a surprise.  Btw - I have a solution that involves template-functions. We just typedef inside the template and everything is fine. How do you properly use namespaces in C++? As per title, I wish to know if I can, after a successful 32bit setup and consequent software installations, update to a 64bit version.  I know how to partition (actually one of the solutions is to set /, /etc, /home, /var/www, and /opt as separate partitions) and I know that a clean install is way better than a dirty one, yet I would like to know if/how it's possible to do that. How can I compile, run and decompile C# code in Ubuntu terminal? How to animate morphing a rectangular plane into a sphere I accidentally "always ignore"d a wrong wrong word. How do I undo it and make the old dictionary clean again? How can I prove that $xy\leq x^2+y^2$? How can I prove that $xy\leq x^2+y^2$ for all $x,y\in\mathbb{R}$ ? Why on earth are o-scopes earth referenced? Thinking about it: You would never find a "Grounded" multimeter as robust and useful if a path to ground through the multimeter were introduced, modifying the circuit's behaviour and possibly damaging the multimeter with currents.  Why are so many oscilloscopes earth referenced? Upon reading some educational material, a majority of the "common mistakes made by students" are placing the grounding clip incorrectly and causing poor results - when the o-scope is just being used as a fancy voltmeter!  I've heard of a Tek scope having an isolation transformer within.. however ignoring that, and taking in to account that newer DSOs may have plastic cases (isolated from you most importantly I would assume) could I just remove the earthing pin, and install a 1:1 AC transformer inbetween the o-scope and outlet and be on my merry way probing various hot/neutral/earthed sources with no worries about a path to ground any longer through it? It's driving me nuts! I just want to transfer one simple file from laptop to server.  I'm using ubuntu on both machines.  So I have:  -rwxr-xr-x 1 sandro    414622 2011-10-14 23:42 sandrophoto-html.tar.gz   And I'm sending it using:  sudo scp -P XXXX sandrophoto-html.tar.gz usern@server.local:/media/xx/xx/xx   And I get: scp: /media/xx/xx/xx/sandrophoto-html.tar.gz: Permission denied  p.s. I might be doing this other way around - I want to send file tar.gz that is located on my desktop, to remote server into the folder /media/yadayda How did the Community user earn the Civic Duty badge? Apparently, .  How the heck did that happen? How to resolve "Failed to download repository information"? Whenever I try to install anything with the Ubuntu Software Center, the following error appears.     Failed to download repository information      Check your Internet connection.      E:Unable to parse package file /var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_precise_multiverse_i18n_Index (1) How to quickly and safely defrost chicken? What is the difference between the three sentences below?   I have been married with her for three years. I was married with her for three years. I married her for three years. Why are there holes in the icing? I tried to follow the new Blender 2.8 tutorial from Blender Guru.   When entering "Sculpting" with the icing there were suddenly alot of holes in it. Why is this? Should you include press interviews and articles about your work in your CV? Is it appropriate to include interviews (published online or in print magazines) in an academic CV?   What about articles/news published about your works? I mean brief (one paragraph) news that professional magazines publish about significant research articles.  If yes, how do you do this to avoid exaggeration? How do I align the viewport to a face normal? I would like to align the view straight on to a face, perpendicular to the normal. How do I align the 3D viewport to the face of a mesh? I'be been running 18.04 since a clean SSD install on the day of it's official release, without issues. Power on to login was seconds (max 10)  Then, I did a regular upgrade this morning:  $ sudo apt update &amp;&amp; sudo apt dist-upgrade   The packages installed/upgraded were:  Install: linux-headers-4.15.0-24:amd64 (4.15.0-24.26, automatic), linux-headers-4.15.0-24-generic:amd64 (4.15.0-24.26, automatic), linux-modules-extra-4.15.0-24-generic:amd64 (4.15.0-24.26, automatic), linux-modules-4.15.0-24-generic:amd64 (4.15.0-24.26, automatic), linux-image-4.15.0-24-generic:amd64 (4.15.0-24.26, automatic) Upgrade: gnome-control-center-data:amd64 (1:3.28.1-0ubuntu1.18.04.1, 1:3.28.1-0ubuntu1.18.04.2), linux-headers-generic:amd64 (4.15.0.23.25, 4.15.0.24.26), gnome-control-center:amd64 (1:3.28.1-0ubuntu1.18.04.1, 1:3.28.1-0ubuntu1.18.04.2), linux-image-generic:amd64 (4.15.0.23.25, 4.15.0.24.26), linux-signed-generic:amd64 (4.15.0.23.25, 4.15.0.24.26), gnome-control-center-faces:amd64 (1:3.28.1-0ubuntu1.18.04.1, 1:3.28.1-0ubuntu1.18.04.2), linux-generic:amd64 (4.15.0.23.25, 4.15.0.24.26)   I rebooted once the upgrade had completed, and noted a 2-3 minute delay on the Ubuntu loading/splash screen (prior to login) (without any progress/activity indicated on the dots).  I powered off and tried to boot again, but am getting this delay consistently now. Also close down is much slower too.  Update #1 (2018-07-03): Analysis on systemd:  $ sudo systemd-analyze blame 3min 53.073s plymouth-quit-wait.service     2min 20.699s snapd.seeded.service          49.949s snapd.service           6.186s NetworkManager-wait-online.service           1.148s dev-sda2.device           1.098s plymouth-start.service   Showing that plymouth-quit-wait.service (which I now believe is related to the Ubuntu loading/splash screen) and snapd.seeded.service were by far the longest running services to initiate. So I compared the times before the dist-upgrade and after:  $ journalctl -u plymouth-quit-wait.service --since today -- Logs begin at Fri 2018-04-27 13:01:30 BST, end at Tue 2018-07-03 12:38:05 BST. -- Jul 03 04:15:43 user-laptop systemd[1]: Starting Hold until boot process finishes up... Jul 03 04:15:46 user-laptop systemd[1]: Started Hold until boot process finishes up. -- Reboot -- Jul 03 04:21:17 user-laptop systemd[1]: Starting Hold until boot process finishes up... Jul 03 04:24:52 user-laptop systemd[1]: Started Hold until boot process finishes up.   Before the upgrade plymouth-quit-wait.service took 3 seconds. After the upgrade it took 3 minutes 35 seconds  $ journalctl -u snapd.seeded.service --since today -- Logs begin at Fri 2018-04-27 13:01:30 BST, end at Tue 2018-07-03 12:42:14 BST. -- Jul 03 04:15:43 user-laptop systemd[1]: Starting Wait until snapd is fully seeded... Jul 03 04:15:43 user-laptop systemd[1]: Started Wait until snapd is fully seeded. -- Reboot -- Jul 03 04:22:47 user-laptop systemd[1]: Starting Wait until snapd is fully seeded... Jul 03 04:24:49 user-laptop systemd[1]: Started Wait until snapd is fully seeded.   Before the upgrade snapd.seeded.service took 0 seconds. After the upgrade it took 2 minutes 2 seconds.  Update #2 (2018-07-06): This morning's boot saw the return of the delay. So I guess we're still waiting for the kernel/plymouth/snapd update.  Update #3 (2018-07-12): The problem seems to be resolved, but I didn't see any update to snap or plymouth, and I'm still running 4.15.0-24 kernel. So I'm not sure which package update fixed the problem, or if it just resolved itself somehow. Reading the bug updates on launchpad it's unclear to me what was done (or is being done) to what package/s. If anyone can clarify that would be very useful. Need Basic Viewer template for ArcGIS JSAPI 3.2/3.3 I am looking for basic viewer for ArcGIS JSAPI  but not  getting  proper sample/example.  I am going through  also but looks like its not working.  Going through  question also.  Checking out  example and getting confused that what is difference between Viewer template and layout?  So any help regarding this will be great!